cloudera.cloud.dw_cluster module – Create or Delete CDP Data Warehouse Clusters
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.dw_cluster
.
Synopsis
Create or Delete CDP Data Warehouse Clusters
Requirements
The below requirements are needed on the host that executes this module.
cdpy
Parameters
Parameter |
Comments |
---|---|
List of zero or more AWS Subnet IDs where the cluster load balancer should be deployed. Required if state=present and the env is deployed to AWS. |
|
List of zero or more AWS Subnet IDs where the cluster worker nodes should be deployed. Required if state=present and the env is deployed to AWS. |
|
Options for activating an Azure CDW Cluster |
|
ID for the private DNS zone used by AKS. |
|
List of Azure Compute Instance Types that the AKS environment is restricted to use. Only a single instance type can be listed. |
|
Flag to enable Availability Zone mode. Required if state=present and the env is deployed to Azure. Choices:
|
|
Flag to enable Azure Private AKS mode. Choices:
|
|
Flag to enable private SQL for the cluster deployment. Choices:
|
|
Flag to enable spot instances for Virtual warehouses. Choices:
|
|
Workspace ID for Azure log analytics. Used to monitor the Azure Kubernetes Service (AKS) cluster. |
|
Resource ID of the managed identity used by AKS. Required if state=present and the env is deployed to Azure. |
|
Network outbound type. This setting controls the egress traffic for cluster nodes in Azure Kubernetes Service Choices:
|
|
The Azure Subnet Name. Required if state=present and the env is deployed to Azure. |
|
Specify the Cloudera Data Platform endpoint region. Default: |
|
The identifier of the Data Warehouse Cluster. Required if state=absent and env is not specified. |
|
Custom environment subdomain. Overrides the environment subdomain using a customized domain. |
|
PostgreSQL server backup retention days |
|
Capture the CDP SDK debug log. Choices:
|
|
The internal polling interval (in seconds) while the module waits for the Data Warehouse Cluster to achieve the declared state. Default: |
|
The name of the target environment. Required if state=present. Required if state=absent and cluster_id is not specified. |
|
Flag to enable force deletion of the Data Warehouse Cluster. This will not destroy the underlying cloud provider assets. Choices:
|
|
Flag to use private IP addresses for Pods within the cluster. Otherwise, use IP addresses within the VPC. Choices:
|
|
Flag to set up a load balancer for private subnets. Choices:
|
|
If provided, the CDP SDK will use this value as its profile. |
|
Set up public facing worker nodes. Choices:
|
|
Set additional number of nodes to reserve for executors and coordinators to use during autoscaling. |
|
Set additional number of nodes to reserve for other services in the cluster. |
|
The Resource Pool of the cluster. |
|
The state of the Data Warehouse Cluster Choices:
|
|
The internal polling timeout (in seconds) while the module waits for the Data Warehouse Cluster to achieve the declared state. Default: |
|
Verify the TLS certificates for the CDP endpoint. Choices:
|
|
Flag to enable internal polling to wait for the Data Warehouse Cluster to achieve the declared state. If set to FALSE, the module will return immediately. Choices:
|
|
The IP ranges authorized to connect to the Kubernetes API server |
|
The IP ranges authorized to connect for workload access |
Examples
# Note: These examples do not set authentication details.
# Request Azure Cluster creation
- cloudera.cloud.dw_cluster:
env_crn: crn:cdp:environments...
azure:
subnet: my-subnet-name
enable_az: yes
managed_identity: my-aks-managed-identity
# Request AWS Cluster Creation
- cloudera.cloud.dw_cluster:
env_crn: crn:cdp:environments...
aws_lb_subnets: [subnet-id-1, subnet-id-2]
aws_worker_subnets: [subnet-id-3, subnet-id-4]
# Delete a Data Warehouse Cluster
- cloudera.cloud.dw_cluster:
state: absent
cluster_id: my-id
# Delete the Data Warehouse Cluster within the Environment
- cloudera.cloud.dw_cluster:
state: absent
env: crn:cdp:environments...
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Details for the Data Warehouse cluster Returned: success |
|
The cloud platform of the environment that was used to create this cluster. Returned: always |
|
The creation timestamp of the cluster in UTC. Returned: always |
|
The cluster creator details. Returned: always |
|
The Actor CRN. Returned: always |
|
Email address (users). Returned: when supported |
|
Username (machine users). Returned: when supported |
|
Username (users). Returned: when supported |
|
The cluster’s CRN. Returned: always |
|
The CRN of the cluster’s Environment Returned: always |
|
The cluster identifier. Returned: always |
|
The status of the cluster 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 |