cloudera.cloud.df_service module – Enable or Disable CDP DataFlow Services
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_service
.
Synopsis
Enable or Disable CDP DataFlow Services
Requirements
The below requirements are needed on the host that executes this module.
cdpy
jmespath
Parameters
Parameter |
Comments |
---|---|
Specify the Cloudera Data Platform endpoint region. Default: |
|
Subnet ids that will be assigned to the Kubernetes cluster Mutually exclusive with the cluster_subnets_filter option |
|
JMESPath expression to filter the subnets to be used for the Kubernetes cluster The expression will be applied to the full list of subnets for the specified environment Each subnet in the list is an object with the following attributes: subnetId, subnetName, availabilityZone, cidr The filter expression must only filter the list, but not apply any attribute projection Mutually exclusive with the cluster_subnets option. |
|
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 DataFlow Service, if available Required when state=absent |
|
The CRN of the CDP Environment to host the Dataflow Service The environment name can also be provided, instead of the CRN Required when state=present |
|
Flag to indicate if the DataFlow deletion should be forced. Choices:
|
|
The IP ranges authorized to connect to the Kubernetes API server |
|
The IP ranges authorized to connect to the load balancer |
|
Subnet ids that will be assigned to the load balancer Mutually exclusive with the loadbalancer_subnets_filter option |
|
JMESPath expression to filter the subnets to be used for the load balancer The expression will be applied to the full list of subnets for the specified environment Each subnet in the list is an object with the following attributes: subnetId, subnetName, availabilityZone, cidr The filter expression must only filter the list, but not apply any attribute projection Mutually exclusive with the loadbalancer_subnets option. |
|
The maximum number of kubernetes nodes that environment may scale up under high-demand situations. Default: |
|
The minimum number of kubernetes nodes needed for the environment. Note that the lowest minimum is 3 nodes. Default: |
|
Whether or not to retain the database records of related entities during removal. Choices:
|
|
Flag to specify if a private K8s cluster should be created. Choices:
|
|
If provided, the CDP SDK will use this value as its profile. |
|
Indicates whether or not to use a public load balancer when deploying dependencies stack. Choices:
|
|
The declarative state of the Dataflow Service Choices:
|
|
Tags to apply to the DataFlow Service |
|
Whether or not to terminate all deployments associated with this DataFlow service Choices:
|
|
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 FALSE, the module will return immediately. Choices:
|
Notes
Note
This feature this module is for is in Technical Preview
Examples
# Note: These examples do not set authentication details.
# Create a Dataflow Service
- cloudera.cloud.df_service:
name: my-service
nodes_min: 3
nodes_max: 10
public_loadbalancer: True
cluster_subnets_filter: "[?contains(subnetName, 'pvt')]"
loadbalancer_subnets_filter: "[?contains(subnetName, 'pub')]"
k8s_ip_ranges: ['192.168.0.1/24']
state: present
wait: yes
# Remove a Dataflow Service with Async wait
- cloudera.cloud.df_service:
name: my-service
persist: False
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 |
---|---|
Returns the captured CDP SDK log. Returned: when supported |
|
Returns a list of each line of the captured CDP SDK log. Returned: when supported |
|
The information about the named DataFlow Service or DataFlow Services 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 authorized IP Ranges. Returned: always |
|
The cloud platform of the environment. Returned: always |
|
Cluster id of the environment. Returned: if enabled |
|
The DataFlow Service’s parent environment CRN. Returned: always |
|
The deployment count. Returned: always |
|
The URL of the environment local DataFlow application. Returned: always |
|
The instance type of the kubernetes nodes currently in use by DataFlow for this environment. Returned: always |
|
The number of kubernetes nodes currently in use by DataFlow for this environment. Returned: always |
|
The maximum number of kubernetes nodes that environment may scale up under high-demand situations. Returned: always |
|
The minimum number of Kubernetes nodes that need to be provisioned in the environment. Returned: always |
|
The DataFlow Service’s parent environment name. Returned: always |
|
The region of the environment. Returned: always |
|
The status of a DataFlow enabled environment. Returned: always |
|
A status message for the environment. Returned: always |
|
The state of the environment. Returned: always |