NetApp Solution Automation

Contributors kulkarnn Download PDF of this page

Procedure

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

  1. Configure Inventory

    1. Go to 'Resources' → 'Inventories' → 'Add' and click on 'Add Inventory'.

    2. Provide name and organization details and click on 'Save'.

    3. In 'Inventories' page, click on the Inventory created.

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

    5. Go to 'Groups' sub-menu and click on 'Add'

    6. Provide name of the group, paste the group variables (if any) and click on 'Save'

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

    8. Provide hostname/IP address of the host, paste the host variables (if any) and click on 'Save'

  2. Create Credential Types

    1. For solutions involving ONTAP, Element, VMware or any other https based transport connection, you will require to configure credential type to match username and password entries.

    2. Go to 'Administration' → 'Credential Types' and click on 'Add'

    3. Provide name and description

    4. Paste the following content in 'Input Configuration':

      fields:
      - id: username
      type: string
      label: Username
      - id: password
      type: string
      label: Password
      secret: true
    5. Paste the following content in 'Injector Configuration':

      extra_vars:
      password: '{{ password }}'
      username: '{{ username }}'
  3. Configure Credentials

    1. Go to 'Resources' → 'Credentials' and click on 'Add'

    2. Enter the name and organization details

    3. Select the right credential type - if you intend to use the standard ssh login, select type Machine or select the custom credential type you might have created

    4. Enter the other corresponding details and click on 'Save'

  4. Configure Project

    1. Go to 'Resources' → 'Projects' and click on 'Add'

    2. Enter the name and organization details

    3. Select 'Git' in '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 on 'Save'

  5. Configure Job Template

    1. Go to 'Resources' → 'Templates' → 'Add' and click on 'Add Job Template'

    2. Enter the name and description

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

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

    5. Select the playbook that is desired to be run as part of the job template

    6. Usually the variables will be pasted during runtime. So 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 on Save

  6. Launching the Job Template

    1. Go to 'Resources' → 'Templates'

    2. Click on the desired template and then click on 'Launch'

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