.. Document meta :orphan: .. |antsibull-internal-nbsp| unicode:: 0xA0 :trim: .. role:: ansible-attribute-support-label .. role:: ansible-attribute-support-property .. role:: ansible-attribute-support-full .. role:: ansible-attribute-support-partial .. role:: ansible-attribute-support-none .. role:: ansible-attribute-support-na .. role:: ansible-option-type .. role:: ansible-option-elements .. role:: ansible-option-required .. role:: ansible-option-versionadded .. role:: ansible-option-aliases .. role:: ansible-option-choices .. role:: ansible-option-choices-entry .. role:: ansible-option-default .. role:: ansible-option-default-bold .. role:: ansible-option-configuration .. role:: ansible-option-returned-bold .. role:: ansible-option-sample-bold .. Anchors .. _ansible_collections.redhat.satellite.compute_resource_module: .. Anchors: short name for ansible.builtin .. Anchors: aliases .. Title redhat.satellite.compute_resource module -- Manage Compute Resources ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. Collection note .. note:: This module is part of the `redhat.satellite collection `_ (version 3.6.0). To install it, use: :code:`ansible-galaxy collection install redhat.satellite`. You need further requirements to be able to use this module, see :ref:`Requirements ` for details. To use it in a playbook, specify: :code:`redhat.satellite.compute_resource`. .. version_added .. versionadded:: 1.0.0 of redhat.satellite .. contents:: :local: :depth: 1 .. Deprecated Synopsis -------- .. Description - Create, update, and delete Compute Resources .. Aliases .. Requirements .. _ansible_collections.redhat.satellite.compute_resource_module_requirements: Requirements ------------ The below requirements are needed on the host that executes this module. - requests .. Options Parameters ---------- .. rst-class:: ansible-option-table .. list-table:: :width: 100% :widths: auto :header-rows: 1 * - Parameter - Comments * - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-description: .. rst-class:: ansible-option-title **description** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
compute resource description .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-locations: .. rst-class:: ansible-option-title **locations** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`list` / :ansible-option-elements:`elements=string` .. raw:: html
- .. raw:: html
List of locations the entity should be assigned to .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-name: .. rst-class:: ansible-option-title **name** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` / :ansible-option-required:`required` .. raw:: html
- .. raw:: html
compute resource name .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-organizations: .. rst-class:: ansible-option-title **organizations** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`list` / :ansible-option-elements:`elements=string` .. raw:: html
- .. raw:: html
List of organizations the entity should be assigned to .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-password: .. rst-class:: ansible-option-title **password** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` / :ansible-option-required:`required` .. raw:: html
- .. raw:: html
Password of the user accessing the Foreman server. If the value is not specified in the task, the value of environment variable \ :literal:`SATELLITE\_PASSWORD`\ will be used instead. .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-provider: .. rst-class:: ansible-option-title **provider** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Compute resource provider. Required if \ :emphasis:`state=present\_with\_defaults`\ . .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`vmware` - :ansible-option-choices-entry:`libvirt` - :ansible-option-choices-entry:`ovirt` - :ansible-option-choices-entry:`proxmox` - :ansible-option-choices-entry:`EC2` - :ansible-option-choices-entry:`AzureRm` - :ansible-option-choices-entry:`GCE` .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-provider_params: .. rst-class:: ansible-option-title **provider_params** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`dictionary` .. raw:: html
- .. raw:: html
Parameter specific to compute resource provider. Required if \ :emphasis:`state=present\_with\_defaults`\ . .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-provider_params/app_ident: .. rst-class:: ansible-option-title **app_ident** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
AzureRM client id .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-provider_params/caching_enabled: .. rst-class:: ansible-option-title **caching_enabled** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
enable caching for \ :emphasis:`provider=vmware`\ .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-provider_params/cloud: .. rst-class:: ansible-option-title **cloud** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` :ansible-option-versionadded:`added in 2.1.0 of redhat.satellite` .. raw:: html
- .. raw:: html
cloud for \ :emphasis:`provider=AzureRm`\ .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`azure` - :ansible-option-choices-entry:`azureusgovernment` - :ansible-option-choices-entry:`azurechina` - :ansible-option-choices-entry:`azuregermancloud` .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-provider_params/datacenter: .. rst-class:: ansible-option-title **datacenter** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Datacenter the compute resource is in, not valid for \ :emphasis:`provider=libvirt`\ .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-provider_params/display_type: .. rst-class:: ansible-option-title **display_type** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Display type to use for the remote console, only valid for \ :emphasis:`provider=libvirt`\ .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-provider_params/email: .. rst-class:: ansible-option-title **email** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Email for \ :emphasis:`provider=GCE`\ .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-provider_params/key_path: .. rst-class:: ansible-option-title **key_path** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Certificate path for \ :emphasis:`provider=GCE`\ .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-provider_params/keyboard_layout: .. rst-class:: ansible-option-title **keyboard_layout** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` :ansible-option-versionadded:`added in 2.0.0 of redhat.satellite` .. raw:: html
- .. raw:: html
Default VNC Keyboard for \ :emphasis:`provider=ovirt`\ .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`ar` - :ansible-option-choices-entry:`da` - :ansible-option-choices-entry:`de` - :ansible-option-choices-entry:`de-ch` - :ansible-option-choices-entry:`en-gb` - :ansible-option-choices-entry:`en-us` - :ansible-option-choices-entry:`es` - :ansible-option-choices-entry:`et` - :ansible-option-choices-entry:`fi` - :ansible-option-choices-entry:`fo` - :ansible-option-choices-entry:`fr` - :ansible-option-choices-entry:`fr-be` - :ansible-option-choices-entry:`fr-ca` - :ansible-option-choices-entry:`fr-ch` - :ansible-option-choices-entry:`hr` - :ansible-option-choices-entry:`hu` - :ansible-option-choices-entry:`is` - :ansible-option-choices-entry:`it` - :ansible-option-choices-entry:`ja` - :ansible-option-choices-entry:`lt` - :ansible-option-choices-entry:`lv` - :ansible-option-choices-entry:`mk` - :ansible-option-choices-entry:`nl` - :ansible-option-choices-entry:`nl-be` - :ansible-option-choices-entry:`no` - :ansible-option-choices-entry:`pl` - :ansible-option-choices-entry:`pt` - :ansible-option-choices-entry:`pt-br` - :ansible-option-choices-entry:`ru` - :ansible-option-choices-entry:`sl` - :ansible-option-choices-entry:`sv` - :ansible-option-choices-entry:`th` - :ansible-option-choices-entry:`tr` .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-provider_params/ovirt_quota: .. rst-class:: ansible-option-title **ovirt_quota** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
oVirt quota ID, only valid for \ :emphasis:`provider=ovirt`\ .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-provider_params/password: .. rst-class:: ansible-option-title **password** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Password for the compute resource connection, not valid for \ :emphasis:`provider=libvirt`\ .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-provider_params/project: .. rst-class:: ansible-option-title **project** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Project id for \ :emphasis:`provider=GCE`\ .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-provider_params/public_key: .. rst-class:: ansible-option-title **public_key** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` :ansible-option-versionadded:`added in 2.0.0 of redhat.satellite` .. raw:: html
- .. raw:: html
X509 Certification Authorities, only valid for \ :emphasis:`provider=ovirt`\ .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-provider_params/region: .. rst-class:: ansible-option-title **region** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
AWS region, AZURE region .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-provider_params/set_console_password: .. rst-class:: ansible-option-title **set_console_password** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` :ansible-option-versionadded:`added in 2.0.0 of redhat.satellite` .. raw:: html
- .. raw:: html
Set a randomly generated password on the display connection for \ :emphasis:`provider=vmware`\ and \ :emphasis:`provider=libvirt`\ .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-provider_params/ssl_verify_peer: .. rst-class:: ansible-option-title **ssl_verify_peer** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
verify ssl from provider \ :emphasis:`provider=proxmox`\ .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-provider_params/sub_id: .. rst-class:: ansible-option-title **sub_id** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` :ansible-option-versionadded:`added in 2.1.0 of redhat.satellite` .. raw:: html
- .. raw:: html
Subscription ID for \ :emphasis:`provider=AzureRm`\ .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-provider_params/tenant: .. rst-class:: ansible-option-title **tenant** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
AzureRM tenant .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-provider_params/url: .. rst-class:: ansible-option-title **url** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
URL of the compute resource .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-provider_params/use_v4: .. rst-class:: ansible-option-title **use_v4** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
Use oVirt API v4, only valid for \ :emphasis:`provider=ovirt`\ .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry:`true` .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-provider_params/user: .. rst-class:: ansible-option-title **user** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Username for the compute resource connection, not valid for \ :emphasis:`provider=libvirt`\ .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-provider_params/zone: .. rst-class:: ansible-option-title **zone** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
zone for \ :emphasis:`provider=GCE`\ .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-server_url: .. rst-class:: ansible-option-title **server_url** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` / :ansible-option-required:`required` .. raw:: html
- .. raw:: html
URL of the Foreman server. If the value is not specified in the task, the value of environment variable \ :literal:`SATELLITE\_SERVER\_URL`\ will be used instead. .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-state: .. rst-class:: ansible-option-title **state** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
State of the entity \ :literal:`present\_with\_defaults`\ will ensure the entity exists, but won't update existing ones .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-default-bold:`present` :ansible-option-default:`← (default)` - :ansible-option-choices-entry:`present\_with\_defaults` - :ansible-option-choices-entry:`absent` .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-updated_name: .. rst-class:: ansible-option-title **updated_name** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
new compute resource name .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-username: .. rst-class:: ansible-option-title **username** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` / :ansible-option-required:`required` .. raw:: html
- .. raw:: html
Username accessing the Foreman server. If the value is not specified in the task, the value of environment variable \ :literal:`SATELLITE\_USERNAME`\ will be used instead. .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__parameter-validate_certs: .. rst-class:: ansible-option-title **validate_certs** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
Whether or not to verify the TLS certificates of the Foreman server. If the value is not specified in the task, the value of environment variable \ :literal:`SATELLITE\_VALIDATE\_CERTS`\ will be used instead. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-default-bold:`true` :ansible-option-default:`← (default)` .. raw:: html
.. Attributes .. Notes .. Seealso .. Examples Examples -------- .. code-block:: yaml+jinja - name: Create livirt compute resource redhat.satellite.compute_resource: name: example_compute_resource locations: - Munich organizations: - ACME provider: libvirt provider_params: url: qemu+ssh://root@libvirt.example.com/system display_type: spice server_url: "https://satellite.example.com" username: "admin" password: "changeme" state: present - name: Update libvirt compute resource redhat.satellite.compute_resource: name: example_compute_resource description: updated compute resource locations: - Munich organizations: - ACME provider: libvirt provider_params: url: qemu+ssh://root@libvirt.example.com/system display_type: spice server_url: "https://satellite.example.com" username: "admin" password: "changeme" state: present - name: Delete libvirt compute resource redhat.satellite.compute_resource: name: example_compute_resource server_url: "https://satellite.example.com" username: "admin" password: "changeme" state: absent - name: Create vmware compute resource redhat.satellite.compute_resource: name: example_compute_resource locations: - Munich organizations: - ACME provider: vmware provider_params: caching_enabled: false url: vsphere.example.com user: admin password: secret datacenter: ax01 server_url: "https://satellite.example.com" username: "admin" password: "changeme" state: present - name: Create ovirt compute resource redhat.satellite.compute_resource: name: ovirt_compute_resource locations: - France/Toulouse organizations: - Example Org provider: ovirt provider_params: url: ovirt.example.com user: ovirt-admin@example.com password: ovirtsecret datacenter: aa92fb54-0736-4066-8fa8-b8b9e3bd75ac ovirt_quota: 24868ab9-c2a1-47c3-87e7-706f17d215ac use_v4: true server_url: "https://satellite.example.com" username: "admin" password: "changeme" state: present - name: Create proxmox compute resource redhat.satellite.compute_resource: name: proxmox_compute_resource locations: - Munich organizations: - ACME provider: proxmox provider_params: url: https://proxmox.example.com:8006/api2/json user: root@pam password: secretpassword ssl_verify_peer: true server_url: "https://satellite.example.com" username: "admin" password: "changeme" state: present - name: create EC2 compute resource redhat.satellite.compute_resource: name: EC2_compute_resource description: EC2 locations: - AWS organizations: - ACME provider: EC2 provider_params: user: AWS_ACCESS_KEY password: AWS_SECRET_KEY region: eu-west-1 server_url: "https://satellite.example.com" username: "admin" password: "changeme" state: present - name: create Azure compute resource redhat.satellite.compute_resource: name: AzureRm_compute_resource description: AzureRm locations: - Azure organizations: - ACME provider: AzureRm provider_params: sub_id: SUBSCRIPTION_ID tenant: TENANT_ID app_ident: CLIENT_ID password: CLIENT_SECRET region: westeurope server_url: "https://satellite.example.com" username: "admin" password: "changeme" state: present - name: create GCE compute resource redhat.satellite.compute_resource: name: GCE compute resource description: Google Cloud Engine locations: - GCE organizations: - ACME provider: GCE provider_params: project: orcharhino email: myname@atix.de key_path: "/usr/share/foreman/gce_orcharhino_key.json" zone: europe-west3-b server_url: "https://satellite.example.com" username: "admin" password: "changeme" state: present .. Facts .. Return values Return Values ------------- Common return values are documented :ref:`here `, the following are the fields unique to this module: .. rst-class:: ansible-option-table .. list-table:: :width: 100% :widths: auto :header-rows: 1 * - Key - Description * - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__return-entity: .. rst-class:: ansible-option-title **entity** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`dictionary` .. raw:: html
- .. raw:: html
Final state of the affected entities grouped by their type. .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` success .. raw:: html
* - .. raw:: html
.. _ansible_collections.redhat.satellite.compute_resource_module__return-entity/compute_resources: .. rst-class:: ansible-option-title **compute_resources** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`list` / :ansible-option-elements:`elements=dictionary` .. raw:: html
- .. raw:: html
List of compute resources. .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` success .. raw:: html
.. Status (Presently only deprecated) .. Authors Authors ~~~~~~~ - Philipp Joos (@philippj) - Baptiste Agasse (@bagasse) - Manisha Singhal (@Manisha15) ATIX AG - Mark Hlawatschek (@hlawatschek) ATIX AG .. Extra links Collection links ~~~~~~~~~~~~~~~~ .. raw:: html .. Parsing errors