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

zhmc: Restructured sample playbooks #222

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andy-maier
Copy link
Collaborator

@andy-maier andy-maier commented Jun 22, 2023

For details, see the commit message.

Ready for review and merge.

@andy-maier andy-maier self-assigned this Jun 22, 2023
@andy-maier andy-maier requested a review from ddimatos June 22, 2023 11:22
Details:

* Restructured the sample playbooks as follows:

  - Renamed them so that the resource they work on appears first in the file
    name, and then the action. This orders them in the directory listing in
    a more meaningful way.

  - Changed the variable that selects the inventory entry from 'host' to
    'hmc'.

  - Removed the 'cpc_name' variable from the vault file, since it is
    different for any HMC anyway, and it is easier to understand if it
    does not appear defined by magic. The CPC is now defined in each
    playbook with the 'cpc' variable and thus can be overridden from
    the command line with '-e cpc=mycpc'.

  - Simplified the variable names that specify resource names to remove
    '_name' for easier use with the '-e' option.

  - Added 'gather_facts: no' to the playbooks.

  - Added a zhmc log file 'zhmc.log' to the playbooks.

* Simplifications in the inventory and vault files:

  - Added the 'verify' variable to the example vault file.

  - Removed 'ansible_connection: local' from the example inventory file
    since it is not needed, when the tasks specify 'delegate_to: local'.

  - Improved the documentation in the example inventory  and vault files.

* Major improvements in the z_systems_administration/zhmc/README.md file
  that documents how to use the sample playbooks.

Signed-off-by: Andreas Maier <[email protected]>
@andy-maier andy-maier force-pushed the andy/restructure-sample-playbooks branch from bde6ff7 to f3cdab3 Compare June 22, 2023 11:25
@ddimatos ddimatos requested review from adn1107 and removed request for ddimatos June 23, 2023 17:01
hosts:
myhmc13: # must match the key name in the vault file

myhmc13: # An HMC nickname (must match the nickname in the vault file)
ansible_host: 10.11.12.13
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this ip address belong to IBM? if yes, maybe just set to something generic like 'your_hmc_ip_address'

hosts:

myhmc13: # An HMC nickname (must match the nickname in the vault file)
ansible_host: 10.11.12.13
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use generic hostname instead of a specific ip address?

Copy link
Member

@adn1107 adn1107 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please review comments before merging.

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

Successfully merging this pull request may close these issues.

2 participants