This set of roles and playbooks demonstrates automating the following:
- Preparing a KVM host
- Installing the ONTAP Select Deploy VM
- Creating an ONTAP Select cluster
- Configuring an ONTAP Cluster
There are additional playbooks to demonstrate other operational tasks.
The end state variables are defined as inventory vars in YAML format in inventory/inventory.yml
Additional examples are in inventory/inventory-reference.yml
Example vault credentials are in the vars folder.
The inventory/inventory.yml file is set as the default inventory in ansible.cfg
ansible-galaxy install -r requirements.yml
ansible-playbook playbooks/kvm_host_prep.yml
And individual host can be targeted with the limit (-l) parameter
ansible-playbook playbooks/kvm_host_prep.yml -l host01
ansible-playbook playbooks/ots_deploy_install.yml
ansible-playbook playbooks/ots_cluster_create.yml
To create only one cluster from the inventory, use the limit (-l) parameter:
ansible-playbook playbooks/ots_cluster_create.yml -l demo1
ansible-playbook playbooks/ots_cluster_configure.yml
To configure only one cluster from the inventory, use the limit (-l) parameter:
ansible-playbook playbooks/ots_cluster_configure.yml -l demo1