Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The module host on redhat.satellite collection does not show all available attributes of compute_attributes parameter #1633

Open
aeladawy opened this issue Jun 23, 2023 · 0 comments

Comments

@aeladawy
Copy link

SUMMARY

When using host module to create a host , compute_attributes parameter does not show the full list of attributes which can be used/overridden .

The examples show only the following :

cpus:
memory_mb:
start:

ISSUE TYPE
  • Bug Report
ANSIBLE VERSION

ansible [core 2.14.3]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.9/site-packages/ansible
ansible collection location = /home/runner/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.9.13 (main, Nov 9 2022, 13:16:24) [GCC 8.5.0 20210514 (Red Hat 8.5.0-15)] (/usr/bin/python3.9)
jinja version = 3.1.2
libyaml = True

COLLECTION VERSION

3.10.0 (latest)

KATELLO/FOREMAN VERSION

foreman-3.3.0.20-1.el8sat.noarch

STEPS TO REPRODUCE
  1. Create a playbook to create a host on the satellite using host module.
  2. The purpose is to override the compute profile setting defined on the satellite.

  • name: create host
    hosts: localhost
    connection: local
    tasks:
    • name: "create a new host"
      redhat.satellite.host:
      username: "admin"
      password: ""
      server_url: ""
      validate_certs: false
      name: [machine name]
      organization: "[Organization]"
      location: "[location]"
      compute_resource: "[Compute resource name]"
      compute_profile: "[Compute profile]"
      compute_attributes:
      cpus: 2
      corespersocket: 2
      memory_mb: 2048
      cluster: "[CLUSTER]"
      resource_pool: "Resources"
      path: "[PATH]"
      add_cdrom: 1
      size_gb: 20
      architecture: "x86_64"
      operatingsystem: "RedHat 8.5"
      state: present
EXPECTED RESULTS
  • Have a full list of the attributes of parameter compute_attributes
ACTUAL RESULTS
  • The documentation does list all available attributes of parameter compute_attributes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant