cloudera.cluster.external_account module – Create, update, or delete an external module account
Note
This module is part of the cloudera.cluster collection (version 5.0.0).
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.cluster
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: cloudera.cluster.external_account
.
New in cloudera.cluster 5.0.0
Synopsis
Manage external accounts, including creation, updates, and deletion.
Supports a variety of account types such as AWS, Azure, Altus, and Basic Authentication.
Configure account-specific parameters, including access keys, client secrets, or basic credentials.
Supports check_mode.
Requirements
The below requirements are needed on the host that executes this module.
cm-client
Parameters
Parameter |
Comments |
---|---|
Set the HTTP user agent header when interacting with the CM API endpoint. Default: |
|
The category of the account. Choices:
|
|
Capture the HTTP interaction logs with the CM API endpoint. Choices:
|
|
Flag to force TLS during CM API endpoint discovery. If Choices:
|
|
Hostname of the CM API endpoint. If set, the Mutually exclusive with url. |
|
Message to log for any changes to the entity. Default: |
|
The initial name of the account. |
|
A dictionary of parameters for the external account configuration. The required parameters depend on the type of the account. |
|
The Altus access key ID for ALTUS_ACCESS_KEY_AUTH. |
|
The Azure AD client ID for ADLS_AD_SVC_PRINC_AUTH. |
|
The Azure AD client secret key for ADLS_AD_SVC_PRINC_AUTH. |
|
The Azure AD tenant ID for ADLS_AD_SVC_PRINC_AUTH. |
|
The AWS access key for AWS_ACCESS_KEY_AUTH. |
|
The AWS secret key for AWS_ACCESS_KEY_AUTH. |
|
The password for BASIC_AUTH. |
|
The private key for ALTUS_ACCESS_KEY_AUTH. |
|
The username for BASIC_AUTH. |
|
Password for access to the CM API endpoint. This parameter is set to |
|
Port of the CM API endpoint. If set, CM API endpoint discovery will connect to the designated port first and will follow redirects. Default: |
|
Set the HTTP/S proxy server when interacting with the CM API endpoint. |
|
Path to SSL CA certificate to use for validation. |
|
If If Choices:
|
|
The type of the external account. Choices:
|
|
The CM API endpoint URL and should include scheme, host, port, and API root path. Mutually exclusive with host. |
|
Username for access to the CM API endpoint. |
|
Verify the TLS certificates for the CM API endpoint. Choices:
|
|
API version of the CM API endpoint. Default: |
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: full |
Can run in check_mode and return changed status prediction without modifying target, if not supported the action will be skipped. |
|
Support: full |
Will return details on what has changed (or possibly needs changing in check_mode), when in diff mode |
|
Platforms: |
Target OS/families that can be operated against |
Examples
- name: Create AWS Access key credentials
cloudera.cluster.external_account:
host: example.cloudera.com
port: "7180"
username: "jane_smith"
password: "S&peR4Ec*re"
name: access_key_1
state: present
type: AWS
category: AWS_ACCESS_KEY_AUTH
params:
aws_access_key: access_key1
aws_secret_key: secret_key1
- name: Create basic authentication credentials
cloudera.cluster.external_account:
host: example.cloudera.com
port: "7180"
username: "jane_smith"
password: "S&peR4Ec*re"
name: Jane
state: present
type: BASIC_AUTH
category: BASICAUTH
params:
username: jane_user
password: pass123!
- name: Update AWS Access key credentials
cloudera.cluster.external_account:
host: example.cloudera.com
port: "7180"
username: "jane_smith"
password: "S&peR4Ec*re"
name: access_key_1
state: present
type: AWS
category: AWS_ACCESS_KEY_AUTH
params:
aws_access_key: access_key2
aws_secret_key: secret_key2
- name: Remove basic authentication credentials
cloudera.cluster.external_account:
host: example.cloudera.com
port: "7180"
username: "jane_smith"
password: "S&peR4Ec*re"
name: Jane
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Details of the external account created, updated, or retrieved. Returned: always |
|
The configuration options for this account. Returned: always |
|
The time of creation for this account. Returned: always |
|
A modifiable label to identify this account for user-visible purposes. Returned: always |
|
The last modification time for this account. Returned: always |
|
Represents the initial name of the account. Returned: always |
|
The Type ID of a supported external account type. Returned: always |