NetApp solution automation

Contributors ageentap kevin-hoke kulkarnn Download PDF of this page


This section describes the steps required to configure the parameters in AWX/Ansible Tower that prepare the environment for consuming NetApp automated solutions.

  1. Configure the inventory.

    1. Navigate to Resources → Inventories → Add and click Add Inventory.

    2. Provide name and organization details and click Save.

    3. In the Inventories page, click the inventory resources you just created.

    4. If there are any inventory variables, paste them into the variables field.

    5. Go to the Groups sub-menu and click Add.

    6. Provide the name of the group, copy in the group variables (if necessary), and click Save.

    7. Click the group created, go to the Hosts sub-menu and click Add New Host.

    8. Provide the hostname and IP address of the host, paste in the host variables (if necessary), and click Save.

  2. Create credential types. For solutions involving ONTAP, Element, VMware, or any other HTTPS-based transport connection, you must configure the credential type to match the username and password entries.

    1. Navigate to Administration → Credential Types and click Add.

    2. Provide the name and description.

    3. Paste the following content into the Input Configuration:

- id: username
type: string
label: Username
- id: password
type: string
label: Password
secret: true
- id: vsadmin_password
type: string
label: vsadmin_password
secret: true
  1. Paste the following content into the Injector Configuration:

password: '{{ password }}'
username: '{{ username }}'
vsadmin_password: '{{ vsadmin_password }}'
  1. Configure credentials.

    1. Navigate to Resources → Credentials and click Add.

    2. Enter the name and organization details.

    3. Select the correct credential type; if you intend to use the standard SSH login, select the type Machine or alternatively select the custom credential type that you created.

    4. Enter the other corresponding details and click Save.

  2. Configure the project.

    1. Navigate to Resources → Projects and click Add.

    2. Enter the name and organization details.

    3. Select Git for the Source Control Credential Type.

    4. Paste the source control URL (or git clone URL) corresponding to the specific solution.

    5. Optionally, if the Git URL is access controlled, create and attach the corresponding credential in Source Control Credential.

    6. Click Save.

  3. Configure the job template.

    1. Navigate to Resources → Templates → Add and click Add Job Template.

    2. Enter the name and description.

    3. Select the Job type; Run configures the system based on a playbook and Check performs a dry run of the playbook without actually configuring the system.

    4. Select the corresponding inventory, project, and credentials for the playbook.

    5. Select the playbook that you would like to run as a part of the job template.

    6. Usually the variables are pasted during runtime. Therefore, to get the prompt to populate the variables during runtime, make sure to tick the checkbox Prompt on Launch corresponding to the Variable field.

    7. Provide any other details as required and click Save.

  4. Launch the job template.

    1. Navigate to Resources → Templates.

    2. Click the desired template and then click Launch.

    3. Fill in any variables if prompted on launch and then click Launch again.