cloudera.cloud.dw_secret_info module – Gather information about CDP Data Warehouse secrets
Note
This module is part of the cloudera.cloud collection (version 3.3.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.cloud.
To use it in a playbook, specify: cloudera.cloud.dw_secret_info.
New in cloudera.cloud 3.4.0
Synopsis
Gather information about CDW (Cloudera Data Warehouse) secrets in a cluster.
Optionally filter by secret name (exact match).
The module supports check_mode.
Parameters
Parameter |
Comments |
|---|---|
If provided, the Cloudera on cloud API will use this value as its access key. If not provided, the API will attempt to use the value from the environment variable Required if Mutually exclusive with |
|
The ID of the CDW cluster. |
|
If provided, the Cloudera on cloud API will use this value as its credentials path. If not provided, the API will attempt to use the value from the environment variable Default: |
|
If Choices:
|
|
The Cloudera on cloud API endpoint to use. If not provided, the API will attempt to use the value from the environment variable Mutually exclusive with |
|
Specify the Cloudera on cloud API endpoint region. See Cloudera Control Plane regions for more information. If not provided, the API will attempt to use the value from the environment variable
Mutually exclusive with Choices:
|
|
Verify the TLS certificates for the Cloudera on cloud API endpoint. Choices:
|
|
The HTTP user agent to use for Cloudera on cloud API requests. Default: |
|
The name of the secret to retrieve. Filters results to the secret whose |
|
If provided, the Cloudera on cloud API will use this value as its private key. If not provided, the API will attempt to use the value from the environment variable Required if |
|
If provided, the Cloudera on cloud API will use this value as its profile. If not provided, the API will attempt to use the value from the environment variable Default: |
|
Legacy CDPy SDK error handling. Choices:
|
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: N/A |
Will return details on what has changed (or possibly needs changing in check_mode), when in diff mode |
|
Platforms: all |
Target OS/families that can be operated against |
Examples
- name: List all secrets in a CDW cluster
cloudera.cloud.dw_secret_info:
cluster_id: "env-abc123"
- name: Retrieve a specific secret by name
cloudera.cloud.dw_secret_info:
cluster_id: "env-abc123"
name: "my-secret"
- name: List secrets using cluster ID alias
cloudera.cloud.dw_secret_info:
id: "env-abc123"
secret_name: "my-db-password"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Returns the captured CDP SDK log. Returned: when debug is true |
|
Returns a list of each line of the captured CDP SDK log. Returned: when debug is true |
|
A list of CDW secrets. Returned: always |
|
The CRN of the user who created the secret. Returned: when available |
|
The properties of the secret. Returned: when available |
|
The name of the Azure Key Vault. Returned: when available |
|
The cloud provider associated with the secret. Returned: when available |
|
The version of the secret. Returned: when available |
|
The user-facing name of the secret. Returned: when available |
|
The provider key name associated with the secret. Returned: when available |