cloudera.cloud.df_deployment module – Enable or Disable CDP DataFlow Deployments
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.df_deployment
.
Synopsis
Enable or Disable CDP DataFlow Deployments
Requirements
The below requirements are needed on the host that executes this module.
cdpy
Parameters
Parameter |
Comments |
---|---|
Whether to use autoscaling of pods for this Deployment Choices:
|
|
The maximum number of nodes to use when Autoscaling Default: |
|
The minimum number of nodes to use when Autoscaling Default: |
|
Whether to automatically start the Flow once Deployment is complete Choices:
|
|
Specify the Cloudera Data Platform endpoint region. Default: |
|
Capture the CDP SDK debug log. Choices:
|
|
The internal polling interval (in seconds) while the module waits for the Dataflow Service to achieve the declared state. Default: |
|
The CRN of the Deployed Flow to be terminated Required if |
|
The CRN of the Dataflow Service Required if the |
|
The Name of the Dataflow Service Required if |
|
The Name of the Flow to be Deployed Required for creating a Deployment if |
|
The Version number of the Flow to be Deployed If not supplied, the latest version available will be Deployed |
|
The CRN of the specific Version of the Flow to be Deployed Required for creating a Deployment if |
|
Definitions of KPIs to apply to the Deployed Flow |
|
The name of the Deployed Flow, or Flow to be Deployed |
|
The specific version of NiFi to use in the Deployment Default: |
|
Definitions of Parameters to apply to the Deployed Flow |
|
If provided, the CDP SDK will use this value as its profile. |
|
The Size of the Pod for the Flow to be Deployed into Choices:
|
|
The number of nodes to build the Pod on if not using Autoscaling Default: |
|
The internal polling timeout (in seconds) while the module waits for the Dataflow Service to achieve the declared state. Default: |
|
Verify the TLS certificates for the CDP endpoint. Choices:
|
|
Flag to enable internal polling to wait for the Dataflow Service to achieve the declared state. If set to Choices:
|
Notes
Note
This feature this module is for is in Technical Preview
Examples
# Note: These examples do not set authentication details.
# Deploy a Dataflow with defaults
- cloudera.cloud.df_deployment:
name: my-flow
# Remove a Dataflow Service with Async wait
- cloudera.cloud.df_deployment:
name: my-flow-name
df_name: my-env-name
state: absent
wait: yes
async: 3600
poll: 0
register: __my_teardown_request
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The information about the named DataFlow Deployment Returned: always |
|
Current count of active alerts classified as an error. Returned: always |
|
Current count of active alerts classified as a warning. Returned: always |
|
The maximum number of nodes that the deployment can scale up to, or null if autoscaling is not enabled for this deployment. Returned: always |
|
The minimum number of nodes that the deployment will allocate. May only be specified when autoscalingEnabled is true. Returned: always |
|
Whether or not to autoscale the deployment. Returned: always |
|
The initial size of the deployment. Returned: always |
|
The version of the configuration for this deployment. Returned: always |
|
The deployment CRN. Returned: always |
|
The current node count. Returned: always |
|
The actor CRN of the person who deployed the flow. Returned: always |
|
The name of the person who deployed the flow. Returned: always |
|
Base URL to the dfx-local instance running this deployment. Returned: always |
|
The deployment’s current flow CRN. Returned: always |
|
The name of the flow. Returned: always |
|
The version of the flow. Returned: always |
|
The deployment’s current flow version CRN. Returned: always |
|
The name of the person who last updated the deployment. Returned: always |
|
The deployment name. Returned: always |
|
The url to open the deployed flow in NiFi. Returned: always |
|
Metadata about the DataFlow service. Returned: always |
|
The cloud provider Returned: always |
|
The crn of the DataFlow service. Returned: always |
|
The CDP Environment CRN Returned: always |
|
The name of the CDP Environment. Returned: always |
|
The region within the cloud provider Returned: always |
|
The static number of nodes that the deployment will allocate. May only be specified when autoscalingEnabled is false. Returned: always |
|
The status of a DataFlow enabled environment. Returned: always |
|
The detailed state that the deployment is currently in. Returned: always |
|
A status message for the environment. Returned: always |
|
The state that the deployment is currently in Returned: always |
|
Timestamp of the last time the deployment was modified. 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 |