cloudera.cloud.de_virtual_cluster module – Manage CDP Data Engineering Virtual 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.de_virtual_cluster.
New in cloudera.cloud 1.5.0
Synopsis
Create, update, suspend, resume, or delete CDP Data Engineering Virtual Clusters.
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 |
|
Comma-separated Workload usernames of CDP users to be granted access to the Virtual Cluster. |
|
Chart overrides for creating the Virtual Cluster. |
|
Name of the chart to override, for example |
|
Space-separated key-value pairs for overriding chart values. |
|
CPU requests for autoscaling. Required when |
|
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: |
|
If Choices:
|
|
The internal polling interval (in seconds) while the module waits for the Virtual Cluster to achieve the declared state. Default: |
|
Discard the Virtual Cluster’s existing Spark configurations instead of merging them with Choices:
|
|
Enable compute override for the Virtual Cluster. Choices:
|
|
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 CDP environment name of the CDE Service in which to create the Virtual Cluster. |
|
Groups granted full access to the Virtual Cluster. |
|
Users granted full access to the Virtual Cluster. |
|
The HTTP user agent to use for Cloudera on cloud API requests. Default: |
|
Memory requests for autoscaling, for example Required when |
|
The name of the Virtual Cluster. |
|
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 |
|
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: |
|
Where the Driver and the Executors run, on-demand or spot instances. |
|
The name of the CDE Service in which to create the Virtual Cluster. |
|
Default session timeout, applicable to the All Purpose (ALLP) virtual cluster tier. |
|
Spark configurations applied to all jobs run in the Virtual Cluster. |
|
Spark OS image for the Virtual Cluster. Choices:
|
|
Spark version for the Virtual Cluster, for example |
|
The declarative state of the Virtual Cluster.
Choices:
|
|
Legacy CDPy SDK error handling. Choices:
|
|
Tier of the Virtual Cluster, for CDE 1.19.0 and beyond.
Choices:
|
|
The internal polling timeout (in seconds) while the module waits for the Virtual Cluster to achieve the declared state. Default: |
|
Groups granted view-only access to the Virtual Cluster. |
|
Users granted view-only access to the Virtual Cluster. |
|
Flag to enable internal polling to wait for the Virtual Cluster to achieve the declared state. If set to Choices:
|
Examples
# Note: These examples do not set authentication details.
# Create a Virtual Cluster and wait for it to become active
- cloudera.cloud.de_virtual_cluster:
name: my-virtual-cluster
environment: my-cdp-environment
service_name: my-cde-service
cpu_requests: "20"
memory_requests: "80Gi"
tier: ALLP
spark_version: SPARK3_5_4
state: present
wait: true
# Delete a Virtual Cluster without waiting
- cloudera.cloud.de_virtual_cluster:
name: my-virtual-cluster
environment: my-cdp-environment
service_name: my-cde-service
state: absent
wait: false
# Suspend a Virtual Cluster and wait for it to become suspended
- cloudera.cloud.de_virtual_cluster:
name: my-virtual-cluster
environment: my-cdp-environment
service_name: my-cde-service
state: suspended
wait: true
# Resume a suspended Virtual Cluster
- cloudera.cloud.de_virtual_cluster:
name: my-virtual-cluster
environment: my-cdp-environment
service_name: my-cde-service
state: present
wait: true
# Update the access control and Spark configs of an existing Virtual Cluster
- cloudera.cloud.de_virtual_cluster:
name: my-virtual-cluster
environment: my-cdp-environment
service_name: my-cde-service
full_access_users:
- alice
view_only_groups:
- viewers
spark_configs:
spark.executor.memory: 4g
state: present
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 |
|
Description of the Virtual Cluster. Returned: always |
|
Access control details for the Virtual Cluster. Returned: when available |
|
Cluster ID of the CDE Service that contains the Virtual Cluster. Returned: always |
|
Email address of the creator of the Virtual Cluster. Returned: when available |
|
Resource details of the Virtual Cluster. Returned: when available |
|
Spark configurations applied to all jobs run in the Virtual Cluster. Returned: when available |
|
Spark version for the Virtual Cluster. Returned: when available |
|
Status of the Virtual Cluster. Returned: always |
|
URL for the Virtual Cluster APIs. Returned: when available |
|
Virtual Cluster ID. Returned: always |
|
Name of the Virtual Cluster. Returned: always |
|
Tier of the Virtual Cluster (ALLP or CORE). Returned: when available |