cloudera.cloud.dw_cluster module – Create or delete CDP Data Warehouse clusters
Note
This module is part of the cloudera.cloud collection (version 3.3.0).
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.
To use it in a playbook, specify: cloudera.cloud.dw_cluster.
New in cloudera.cloud 1.0.0
Synopsis
Create or delete CDP Data Warehouse clusters.
Cluster creation uses provider-specific endpoints (AWS, Azure, Private Cloud), determined automatically from the environment or explicitly via
cloud_platform.Reconciliation of existing clusters is not yet implemented; the module warns when
state=presenttargets an existing cluster.The module supports
check_modeanddiff_mode.
Parameters
Parameter |
Comments |
|---|---|
If provided, the Cloudera on cloud API will use this value as its access key. If not provided, the API will attempt to use the value from the environment variable Required if Mutually exclusive with |
|
Options for activating an AWS CDW Cluster. |
|
Custom AMI ID for the cluster nodes. |
|
Options for a custom ECR registry. |
|
Custom registry type. Choices:
|
|
URL of the custom image repository. |
|
Set up AWS EKS cluster in private-only mode with restricted access. Choices:
|
|
Enable Spot instances for Virtual warehouses. Cannot be updated after creation. Choices:
|
|
List of AWS Subnet IDs where the cluster load balancer should be deployed. |
|
Managed Policy ARN to attach to the Node Instance Role. |
|
Non-transparent proxy settings for the AWS cluster. |
|
Domains where the proxy is bypassed. |
|
Switch using the default non-transparent proxy on or off. Choices:
|
|
Activate the environment with fewer than half of the standard required IAM permissions. Choices:
|
|
List of AWS Subnet IDs where the cluster worker nodes should be deployed. |
|
List of zero or more AWS Subnet IDs where the cluster load balancer should be deployed. Deprecated in favor of |
|
List of zero or more AWS Subnet IDs where the cluster worker nodes should be deployed. Deprecated in favor of |
|
Options for activating an Azure CDW Cluster. |
|
CIDR range for AKS pods. |
|
ID for the private DNS zone used by AKS. |
|
Deprecated. This parameter has no effect and will be removed in a future release. |
|
Options for a custom ACR registry. |
|
Custom registry type. Choices:
|
|
URL of the custom image repository. |
|
Flag to enable Availability Zone mode. 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 |
|
Network outbound type. This setting controls the egress traffic for cluster nodes in Azure Kubernetes Service. Choices:
|
|
ID for the private DNS zone used by SQL. |
|
Name of the subnet used for private SQL. |
|
The Azure Subnet Name. Required if |
|
The cloud provider platform for cluster creation. When set to Set explicitly to Only used when Choices:
|
|
The identifier of the Data Warehouse Cluster. Required if |
|
If provided, the Cloudera on cloud API will use this value as its credentials path. If not provided, the API will attempt to use the value from the environment variable Default: |
|
Custom environment subdomain. Overrides the environment subdomain using a customized domain. |
|
PostgreSQL server backup retention days. |
|
If Choices:
|
|
The internal polling interval (in seconds) while the module waits for the Data Warehouse Cluster to achieve the declared state. Default: |
|
The Cloudera on cloud API endpoint to use. If not provided, the API will attempt to use the value from the environment variable Mutually exclusive with |
|
Specify the Cloudera on cloud API endpoint region. See Cloudera Control Plane regions for more information. If not provided, the API will attempt to use the value from the environment variable
Mutually exclusive with Choices:
|
|
Verify the TLS certificates for the Cloudera on cloud API endpoint. Choices:
|
|
The name or CRN of the target environment. Required if Required if |
|
Flag to enable force deletion of the Data Warehouse Cluster. This will not destroy the underlying cloud provider assets. Choices:
|
|
The HTTP user agent to use for Cloudera on cloud API requests. Default: |
|
Flag to use private IP addresses for Pods within the cluster. Otherwise, use IP addresses within the VPC. Choices:
|
|
Options for activating an On Premise CDW Cluster. |
|
Custom Kerberos principal hostname for the cluster. |
|
TLS client certificate contents. Used for the mutual TLS connections between the Database Catalog and the metastore database. |
|
TLS client private key contents. Used for the mutual TLS connections between the Database Catalog and the metastore database. |
|
The storage class for the Local Storage Operator. |
|
If provided, the Cloudera on cloud API will use this value as its private key. If not provided, the API will attempt to use the value from the environment variable Required if |
|
Flag to set up a load balancer for private subnets. Choices:
|
|
If provided, the Cloudera on cloud API will use this value as its profile. If not provided, the API will attempt to use the value from the environment variable Default: |
|
Set up public facing worker nodes (AWS only). Choices:
|
|
Deprecated. This parameter has no effect and will be removed in a future release. |
|
Deprecated. This parameter has no effect and will be removed in a future release. |
|
Deprecated. This parameter has no effect and will be removed in a future release. |
|
The state of the Data Warehouse Cluster. Choices:
|
|
Legacy CDPy SDK error handling. Choices:
|
|
The internal polling timeout (in seconds) while the module waits for the Data Warehouse Cluster to achieve the declared state. Default: |
|
Flag to enable internal polling to wait for the Data Warehouse Cluster to achieve the declared state. If set to 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 AWS Cluster creation (auto-detect platform from environment)
- cloudera.cloud.dw_cluster:
env: my-environment
aws:
lb_subnets:
- subnet-id-1
- subnet-id-2
worker_subnets:
- subnet-id-3
- subnet-id-4
# Request AWS Cluster creation with explicit platform
- cloudera.cloud.dw_cluster:
env: my-environment
cloud_platform: AWS
aws:
lb_subnets:
- subnet-id-1
worker_subnets:
- subnet-id-2
enable_private_eks: true
custom_ami_id: ami-0123456789abcdef0
# Request Azure Cluster creation
- cloudera.cloud.dw_cluster:
env_crn: crn:cdp:environments...
azure:
subnet: my-subnet-name
enable_az: true
managed_identity: my-aks-managed-identity
# Request Private Cloud Cluster creation
- cloudera.cloud.dw_cluster:
env_crn: crn:cdp:environments...
private_cloud:
storage_class: my-storage-class
# Delete a Data Warehouse Cluster by ID
- 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...
# Force delete a Data Warehouse Cluster
- cloudera.cloud.dw_cluster:
state: absent
cluster_id: my-id
force: true
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 |