Hi Hari,
I've been using playbooks to automate a larger IBM i deployment, high level here's the workflow.
- Configure HMC's (one off and since they need to be somewhat configured for Ansible to work, so not much there so far)
- Create and install VIO server LPAR's
- Create a LPAR (capture WWPN's)
- Configure SAN switch zoning (using captured WWPN's)
- Configure DS8K Host and Pathing
- Add additional tape HBA's to the LPAR (capture WWPN's)
- Configure TAN switch zoning (using captured WWPN')
- (to be continued)
So from this, according to steps, here are some notes. I'm by no means an Ansible SME, so if I did things incorrectly, please disregard.
2a. Defining IO slots and virtual ethernet adapters is a bit painful. It works, but wondering if we couldn't make it more eye-readable than 21010010/none/0 and 2/0/1//2/1/ETHERNET0//all/none.
2b. After creating the LPAR, there's no way, besides running a HMC command, to capture WWPN's. (powervm_lpar_instance state=facts doesn't show NPIV WWN's · Issue #129 · IBM/ansible-power-hmc (github.com)). I end up using the lsnports command to capture WWPN's. While that works, the command lacks the ability to filter, sort, etc. So would be really nice to have a way to capture WWPN's from an newly created and not yet booted LPAR.
So far, what I've seen. The biggest miss so far is on the DS8K collection, but guessing that's not in your scope.
------------------------------
Mark Steele
------------------------------
Original Message:
Sent: Thu October 10, 2024 11:48 AM
From: HARIGANESH MURALIDHARAN
Subject: Input on Ansible for Power Use cases
Hi Everyone,
We need your input! As part of our ongoing efforts to improve automation capabilities for IBM Power systems, we're looking to identify any missing Ansible modules or functions in the current Power collection for AIX, IBM i, HMC, and VIOS.
If you've encountered any gaps or if there are specific features you'd like to see added, let us know by replying to this post. Your feedback will help us enhance the Ansible collection and deliver the tools you need to streamline your operations.
Thank you for contributing and making this community stronger!
------------------------------
Hariganesh Muralidharan, Senior Technical Staff Member, IBM
------------------------------