Question

Ansible for updating NGT

  • 23 September 2020
  • 5 replies
  • 488 views

Userlevel 1
Badge +1

Hi,

My company is going through a major organization change, and we will be driving a lot of VM automation through Ansible.  Since all of us know that the Powershell support is woefully lacking in AHV, I would like to try to get more automation plugged in through Ansible.  Is there an example playbook out there for upgrading/installing NGT for both Windows and Linux?

I know that updating NGT via Prism Central works pretty well for Windows, but once again, it fails miserably for Linux (at least OUL).  I would like to do it in an automated fashion, however, instead of 60 checkboxes at a time.  I need a feature that I can upgrade hundreds of VM’s at once and schedule it.

Any assistance would be appreciated!


5 replies

Userlevel 2
Badge +3

If this is Nutanix Feature that can be implemented. Feel free to open Product Improvement case.

Userlevel 1
Badge +1

If this is Nutanix Feature that can be implemented. Feel free to open Product Improvement case.

Are you aware of what Ansible is?

Userlevel 2
Badge +3

I answered based on “I need a feature that I can upgrade hundreds of VM’s at once and schedule it.”

As far as playbook, I am not aware of Nutanix officially provided solution/resources. https://www.nutanix.dev/ may have git repo provided by third-party, not official. 

https://portal.nutanix.com/page/documents/details?targetId=Prism-Central-Guide-Prism-v5_18:mul-vm-prerequisites-playbook-actions-pc-r.html

https://portal.nutanix.com/page/documents/details?targetId=Documentation-Release-Notes-Acr-v5_10:rel-doc-update-r.html

We have bulk installation feature for NGT.  AOS 5.10.2, 5.11 are most stable for bulk installation of NGT

Userlevel 1
Badge +1

As I stated in the original post:

“I know that updating NGT via Prism Central works pretty well for Windows, but once again, it fails miserably for Linux (at least OUL).”

 

I was putting it out to the community, because www.nutanix.dev is lacking as well.  I will go ahead and accept the answer as “no there isn’t anything.  Good luck with your Linux upgrades on your own.”  

Userlevel 1
Badge +1

@BlakeRobertsNBL  I have an ansible role at https://galaxy.ansible.com/cybergavin/nutanix_vm_create which provisions many VMs with the option of mounting/enabling NGT on the VMs. For NGT operations, I had to use Prism Element as there are no relevant APIs for AHV on Prism Central. This may assist you in creating a playbook specifically for NGT.

Reply