Skip to content

Instantly share code, notes, and snippets.

@whip113
Last active October 9, 2018 21:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whip113/a788a4c7bcb5118093a372dc42f10e0c to your computer and use it in GitHub Desktop.
Save whip113/a788a4c7bcb5118093a372dc42f10e0c to your computer and use it in GitHub Desktop.
Custom Credential for Ansible Tower - Conjur Identity
"name": "Conjur API Key",
"description": "",
"kind": "cloud",
"managed_by_tower": false,
"inputs": {
"fields": [
{
"secret": true,
"type": "string",
"id": "api_key",
"label": "API Key"
},
{
"type": "string",
"id": "account",
"label": "Conjur Acct"
},
{
"type": "string",
"id": "appliance_url",
"label": "Appliance Url"
},
{
"label": "Conjur Certificate",
"secret": true,
"multiline": true,
"help_text": "Paste the contents of the PEM file associated with the Conjur Appliance.",
"type": "string",
"id": "conjur_ca_cert"
}
],
"required": [
"api_key",
"account",
"appliance_url"
]
},
"injectors": {
"file": {
"template": "{{ conjur_ca_cert }}"
},
"env": {
"CONJUR_APPLIANCE_URL": "{{appliance_url}}",
"CONJUR_ACCOUNT": "{{account}}",
"CONJUR_AUTHN_API_KEY": "{{api_key}}",
"CLIENT_CERTIFICATE": "{{ tower.filename }}"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment