custom credential type for nutanix prism central

42 views
Skip to first unread message

battlestargalactica

unread,
Apr 13, 2023, 5:07:16 PM4/13/23
to AWX Project
hello - can anyone help me with what we need to do to create a credential to access our nutanix cluster prism central so we can leverage this collection?

AWX Project

unread,
Apr 14, 2023, 1:24:19 PM4/14/23
to AWX Project
This should achievable with the custom credential types feature, see the docs on how to set one up https://docs.ansible.com/automation-controller/latest/html/userguide/credential_types.html#custom-credential-types

let us know if you run into trouble getting it configured

AWX Team

battlestargalactica

unread,
Apr 17, 2023, 2:14:48 PM4/17/23
to AWX Project
Yes thanks that was what i needed and used extra_vars for my injectors:

Inputs:
fields:
- id: nutanix_host
  type: string
  label: Nutanix Host IP
- id: nutanix_username
  type: string
  label: Username
- id: nutanix_password
  type: string
  label: Password
  secret: true
required:
- nutanix_host
- nutanix_username
  - nutanix_password

Injectors:
extra_vars:
nutanix_host: '{{ nutanix_host }}'
nutanix_password: '{{ nutanix_password }}'
  nutanix_username: '{{ nutanix_username }}'



this works with the following playbook settings:

---
- name: Clusters_Info playbook
  hosts: nutanix
  gather_facts: false
  collections:
    - nutanix.ncp
  module_defaults:
    group/nutanix.ncp.ntnx:
      nutanix_host: "{{ nutanix_host }}"
      nutanix_username: "{{ nutanix_username }}"
      nutanix_password: "{{ nutanix_password }}"
      validate_certs: false
Reply all
Reply to author
Forward
0 new messages