cloudera.cloud.env_proxy module – Create, update, or destroy CDP Environment Proxies
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_proxy
.
Synopsis
Create, update, and destroy CDP Environment Proxies
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 description for the proxy config |
|
The proxy host Required when state=present |
|
The name of the proxy config |
|
List of hosts that should note be proxied. Format can be CIDR, [.]host[:port] (can be a subdomain) or IP[:port]. Wildcards are not accepted |
|
The proxy password NOTE - Defining this parameter will always force an proxy configuration update. |
|
The proxy port Required when state=present |
|
If provided, the CDP SDK will use this value as its profile. |
|
The protocol Required when state=present Choices:
|
|
The state of the proxy Choices:
|
|
The proxy user NOTE - Defining this parameter will always force an proxy configuration update |
|
Verify the TLS certificates for the CDP endpoint. Choices:
|
Examples
# Note: These examples do not set authentication details.
# Create a proxy with a user and password
- cloudera.cloud.env_proxy:
name: proxy-example
host: example.cloudera.com
port: 8443
protocol: https
user: foo
password: barbazgaz
# Delete a proxy
- cloudera.cloud.env_proxy:
state: absent
name: proxy-example
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Details on the proxy Returned: on success |
|
The CRN of the proxy config. Returned: always Sample: |
|
A description for the proxy config. Returned: when supported Sample: |
|
The proxy host. Returned: always Sample: |
|
The proxy port. Returned: always Sample: |
|
The proxy protocol. Returned: always Sample: |
|
The name of the proxy config. Returned: always Sample: |
|
The proxy user. Returned: when supported Sample: |
|
Returns the captured CDP SDK log. Returned: when supported |
|
Returns a list of each line of the captured CDP SDK log. Returned: when supported |