|
4 years ago | |
---|---|---|
.. | ||
defaults | 4 years ago | |
files | 4 years ago | |
meta | 4 years ago | |
tasks | 4 years ago | |
templates | 4 years ago | |
README.md | 4 years ago |
This ansible role enables the creation of one or more VMs on a single Nutanix cluster.
-- A user-provided tilde-separated-values file containing the specifications of one or more VMs. Refer the sample files/vm.tsv in the role dircetory. -- A user-provided variables file containing appropriate values for required variables. Refer the defaults/main.yml in the role directory.
-- pc_cluster_fqdn # FQDN/IP for Prism Central -- pe_cluster_fqdn # FQDN/IP for Prism Element -- prism_user # An account with permissions to provision on the cluster -- prism_password # The account's password. Do NOT store this in the clear. Use ansible vault or an external vault. -- cluster_name # Name of the nutanix cluster on which VMs will be created -- vm_data_tsv # Relative path and name of the tilde-separated-values file containing details of the VMs to be deployed -- global_debug # Global Debug flag
Although this role uses the v1 API on Prism Element to mount and enable Nutanix Guest Tools on the created VM(s), the NGT status will be displayed as "Latest" only after the VM(s) reboot or the "Nutanix Guest Agent" service on the VM(s) is restarted.
Create a vars/main.yml with the required variables (above) and a files/vm.tsv before using the following playbook.
GPLv3.0
Cybergavin - https://cybergav.in - https://github.com/cybergav.in
Influenced/Inspired by the Ansible role mbach04.nutanix_vm_provisioner at https://github.com/mbach04/nutanix_vm_provisioner.