cloudera.cloud.env_auth_info module – Gather information about CDP environment authentication details
Note
This module is part of the cloudera.cloud collection (version 2.5.1).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install cloudera.cloud
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: cloudera.cloud.env_auth_info
.
Synopsis
Gather information about CDP environment authentication details, notably the FreeIPA root certificate and user keytabs.
The module supports check_mode.
Requirements
The below requirements are needed on the host that executes this module.
cdpy
Parameters
Parameter |
Comments |
---|---|
Specify the Cloudera Data Platform endpoint region. Default: |
|
Capture the CDP SDK debug log. Choices:
|
|
A flag to retrieve the keytabs for the given environment or environments, governed by the value of If no environments are declared, all environments will be queried. Choices:
|
|
A target list of environments or a single environment string. If no environments are specified, all environments are targeted. |
|
If provided, the CDP SDK will use this value as its profile. |
|
A flag indicating whether to retrieve the given environment’s FreeIPA root certificate. Choices:
|
|
A list of user IDs or a single user ID for retrieving the keytabs from the specified environment(s). If no user ID is declared, the current CDP user will be used. |
|
Verify the TLS certificates for the CDP endpoint. Choices:
|
Examples
# Note: These examples do not set authentication details.
# Retrieve only the root certificate for a single environment
- cloudera.cloud.env_auth_info:
name: the-environment
root_certificate: yes
keytab: no
# Retrieve the root certificate for multiple environments
- cloudera.cloud.env_auth_info:
name:
- one-environment
- two-environment
root_certificate: yes
keytab: no
# Retrieve the keytab details for the current CDP user for selected environments
- cloudera.cloud.env_auth_info:
name:
- one-environment
- two-environment
keytab: yes
root_certificate: no
# Retrieve the keytab details for the specified users for selected environments
- cloudera.cloud.env_auth_info:
name:
- one-environment
- two-environment
user:
- UserA
- UserB
keytab: yes
root_certificate: no
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Returns a dictionary of the environment authentication details. Returned: always |
|
A dictionary of environment-to-FreeIPA root certificate Returned: when supported |
|
The FreeIPA root certificate for the environment Returned: always |
|
A dictionary of the keytabs for each specified environment by user. Returned: when supported |
|
The user’s workload username. Returned: always |
|
The keytab for the environment. The keytab is encoded in base64. Returned: always |
|
Returns the captured CDP SDK log. Returned: when supported |
|
Returns a list of each line of the captured CDP SDK log. Returned: when supported |