Automation and Configuration Management are indispensable to an efficient DevOps driven environment. NetApp has supported Ansible modules for ONTAP and Element software. So, let’s get right to it and see how all this works.
Part 1. Install Ansible
If you don’t have Ansible already installed, getting it is very easy. There are multiple ways to get Ansible, but I will be focusing on the PIP method. PIP is a python package manager. I am using CentOS 7.5 for my examples but with minor changes this will work for any distribution.
For CentOS the pip package is in the EPEL repository, so first I need to install that repo.
$ sudo yum install epel-release -y
Once that is installed it’s a simple matter to add PIP.
$ sudo yum install python-pip -y
Now that we have PIP installed we can add Ansible with a single line.
$ sudo pip install ansible
The last thing we need from PIP is some NetApp specific python modules.
$ sudo pip install netapp-lib solidfire-sdk-python
That’s it, Ansible has had NetApp supported modules in the default distribution since release 2.6!
Join me next Getting Started, to learn how to update to the newest NetApp modules between Ansible releases.
You can see a video demonstration of these steps here.