cloudera.cloud.env_user_sync module – Sync CDP Users and Groups to Environments
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_user_sync
.
Synopsis
Synchronize users and groups with one or more CDP environments.
The module support 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: |
|
Sync the current CDP user as defined by the Mutually exclusive with name. Choices:
|
|
Capture the CDP SDK debug log. Choices:
|
|
The internal polling interval (in seconds) while the module waits for the datalake to achieve the declared state. Default: |
|
A single Environment or list of Environments that will sync all CDP Users and Groups. If not present, all Environments will be synced. Mutually exclusive with current_user. |
|
If provided, the CDP SDK will use this value as its profile. |
|
The internal polling timeout (in seconds) while the module waits for the datalake to achieve the declared state. Default: |
|
Verify the TLS certificates for the CDP endpoint. Choices:
|
Examples
# Note: These examples do not set authentication details.
# Sync a CDP Environment
- cloudera.cloud.env_user_sync:
name: example-environment
# Sync multiple CDP Environments
- cloudera.cloud.env_user_sync:
name:
- example-environment
- another-environment
# Sync the current CDP User
- cloudera.cloud.env_user_sync:
current_user: yes
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 supported |
|
Returns a list of each line of the captured CDP SDK log. Returned: when supported |
|
Returns an object describing of the status of the User and Group sync event. Returned: success |
|
Sync operation end timestamp (epoch seconds). Returned: when supported Sample: |
|
Error message for general failure of sync operation. Returned: when supported |
|
List of sync operation details for all failed environments. Returned: when supported |
|
The environment CRN. Returned: always |
|
Details on the failure. Returned: when supported |
|
UUID of the request for this operation. Returned: always Sample: |
|
The operation type. Returned: when supported Sample: |
|
Sync operation start timestamp (epoch seconds). Returned: when supported Sample: |
|
Status of this operation. Returned: when supported Sample: |
|
List of sync operation details for all succeeded environments. Returned: when supported |
|
The environment CRN. Returned: always |
|
Details on the success. Returned: when supported |