Using credential types and credentials
Credentials are the way to store secrets and passwords inside of the Automation controller. What a credential stores and how it can be accessed in a playbook is dictated by what type it is. The controller has 26 built-in credential types, ranging from SSH keys to those designed to interact with secret management systems such as HashiCorp Vault. Some of the built-in credentials are also made to access services such as AWS or Azure.
Credential types
To understand credentials, it is important to look at the underlying credential types. Credential type definitions can be found by navigating to the web page (https://{{controller_fqdn}}/api/v2/credential_types/
) of the controller. There is also a playbook to export the credential API definitions in this chapter’s repository (ch05/credentials/credential_types_names.yaml
and ch05/credentials/credential_types.yaml
).
Custom credential types can be especially useful to store global sensitive...