foreman_compute_attribute – Manage Foreman Compute Attributes

Synopsis

  • Manage Foreman Compute Attributes

  • This beta version can create, and update compute attributes

Requirements

The below requirements are needed on the host that executes this module.

  • apypie

Parameters

Parameter Choices/Defaults Comments
compute_profile
string / required
Name of compute profile
compute_resource
string / required
Name of compute resource
password
string / required
Password of the user accessing the Foreman server
server_url
string / required
URL of the Foreman server
state
string
    Choices:
  • present ←
  • absent
State of the entity in Foreman
username
string / required
Username accessing the Foreman server
validate_certs
boolean
    Choices:
  • no
  • yes ←
Whether or not to verify the TLS certificates of the Foreman server

aliases: verify_ssl
vm_attrs
dictionary
Hash containing the data of vm_attrs

aliases: vm_attributes

Examples

- name: "Create compute attribute"
  foreman_compute_attribute:
    username: "admin"
    password: "changeme"
    server_url: "https://foreman.example.com"
    compute_profile: "Test Compute Profile"
    compute_resource: "Test Compute Resource"
    vm_attrs:
      memory_mb: '2048'
      cpu: '2'
    state: present

- name: "Update compute attribute"
  foreman_compute_attribute:
    username: "admin"
    password: "changeme"
    server_url: "https://foreman.example.com"
    compute_profile: "Test Compute Profile"
    compute_resource: "Test Compute Resource"
    vm_attrs:
      memory_mb: '1024'
      cpu: '1'
    state: present

Status

Authors

  • Manisha Singhal (@Manisha15) ATIX AG

Hint

If you notice any issues in this documentation, you can edit this document to improve it.