:source: foreman_compute_attribute.py :orphan: .. _foreman_compute_attribute_module: foreman_compute_attribute -- Manage Foreman Compute Attributes ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. contents:: :local: :depth: 1 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 ---------- .. raw:: html
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 -------- .. code-block:: yaml+jinja - 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 ------ - This module is not guaranteed to have a backwards compatible interface. *[preview]* - This module is :ref:`maintained by the Ansible Community `. *[community]* Authors ~~~~~~~ - Manisha Singhal (@Manisha15) ATIX AG .. hint:: If you notice any issues in this documentation, you can `edit this document `_ to improve it.