Thank you to everyone who’s provided feedback and comments on the Ansible ONTAP modules we released this past May. Your input has helped us with everything from bugs and fixes to ideas for new enhancements and new functionality.
We have been listening to your feedback and our new releases incorporate many of your suggestions along with additional modules.
We are excited to publish eighteen (18!) new and updated modules for Element software. Element software is the OS that drives our SolidFire and HCI solutions. These new Element software modules are:
na_elementsw_access_group.py
na_elementsw_account.py
na_elementsw_admin_users.py
na_elementsw_backup.py
na_elementsw_check_connections.py
na_elementsw_cluster.py
na_elementsw_cluster_pair.py
na_elementsw_drive.py
na_elementsw_ldap.py
na_elementsw_network_interfaces.py
na_elementsw_node.py
na_elementsw_snapshot.py
na_elementsw_snapshot_restore.py
na_elementsw_snapshot_schedule.py
na_elementsw_vlan.py
na_elementsw_volume.py
na_elementsw_volume_clone.py
na_elementsw_volume_pair.py
In addition to Day 0/1 requirements, there has been a strong focus on also handling the majority of Day 2+ tasks. This will allow Element software and Ansible to move towards Infrastructure-as-Code, and Automation coverage for Element software from Ansible.
These modules are currently available from our NetApp GitHub site at https://github.com/netapp/ansible.
Documentation for these modules can be found here: http://netapp-ansible.readthedocs.io/en/latest/
To add these modules, follow these instructions:
git clone https://github.com/NetApp/ansible.git cd ansible ansible --version
Your output might differ but it will look something like this:
ansible 2.4.2.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible executable location = /usr/local/bin/ansible python version = 2.7.12 (default, Nov 20 2017, 18:23:56) [GCC 5.4.0 20160609]
The line that starts with “ansible python module location” shows you where your local modules are so replace your path if different for the export command Shell
export ANSIBLE_PATH=/usr/local/lib/python2.7/dist-packages/ansible cp -aRv lib/ansible/module_utils/netapp* $ANSIBLE_PATH/module_utils/ cp -aRv lib/ansible/modules/storage/netapp/* $ANSIBLE_PATH/modules/storage/netapp/
As always if you haven’t already, join us on Slack and stay tuned to www.netapp.io for more example playbooks for both ONTAP and Element software.