In a previous post I talked about how to install and run AWX Tower in a Docker stack.  In this post I will continue the Tower setup by creating both the Credential Type for ONTAP and a Credential for a Cluster.

Let’s start with creating a Credential Type.  Log in to your Tower instance and from the left-hand menu “ADMINISTRATION” section select “Credential Types”

Click the green + button to add a new credential type to Tower.

  • For the “NAME” enter ‘ONTAP’
  • The “INPUT CONFIGURATION” should look like this

fields:
  - id: netapp_username
    type: string
    label: Username
  - id: netapp_password
    type: string
    label: Password
    secret: true

  • The “INJECTOR CONFIGURATION” should look like this

extra_vars:
  netapp_password: '{{ netapp_password }}'
  netapp_username: '{{ netapp_username }}'

Save the changes to create the credential type.

Now that the ONTAP credential type exists, we can create a credential entry.

From the “RESOURCES” section on the left,   select the “Credentials” options.  Click the green ‘+’ button on the top right to begin creating a new Credential.

For the “NAME” enter something that makes sense to you.  For example, here I am using NetApp Admin, but it could be EMEA CLUSTERS or something else meaningful.  For the “CREDENTIAL TYPE” select ONTAP.  It will probably be on page 3 or 4 of your list of credential types.  Now, enter the username and password you will use to logon to your cluster.

Now any Tower templates you create with this credential and a playbook that has netapp_username and netapp_password as variables will be able to use this username/password combo without having to explicitly specify the credentials in text.

I also have a credential type of “Windows AD” that I use for when I need to join a CIFS server to a domain. Try and add your own extra credential types, but make sure to use a unique injector configuration variable  so you don’t have conflicts.

In the next post I will show how to setup a Project and the first Template you can use.  In the meantime, as always, see me on Slack in the #configurationmgmt channel, or join our workgroup with an invite from netapp.io/slack.

 

David Blackwell on Linkedin
David Blackwell
Technical Marketing Engineer at NetApp
David is a twenty year IT veteran who has been an admin for just about every aspect of a DataCenter at one time or another. When not working, or tinkering with new software at home, David spends most of his free with his four year old son and his lovely wife.

Pin It on Pinterest