Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
tower: modify tower_credential module to support custom cred types (ansible#54493) #54503
In addition to built-in credential types, Tower also supports creation of custom credential types.
Existing tower_credential module does not allow us to reference and create credential of custom type.
This change will allow for management of credentials of custom credential type.
Existing tower_credential module only supports built-in credential types specified using the 'kind' module param. These are built-in cred types (valid choices) supported -
["ssh", "vault", "net", "scm", "aws", "vmware", "satellite6", "cloudforms", "gce", "azure_rm", "openstack", "rhv", "insights", "tower"]
This change will allow for an extra 'kind' param choice value - 'cloud' (as in Tower, custom credentials types can only be defined as 'cloud' kind). If credential kind param has value of 'cloud', the new param 'credential_type' will be required (used to specify custom credential type name). See below for example.
This change is back-compatible - i.e. when any other built-in 'kind' is specified, credential_type param is not needed and logic is unchanged.