cloudera.cloud.de_virtual_cluster module – Create or delete CDP Data Engineering Virtual 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.de_virtual_cluster
.
Synopsis
Create or delete CDP Data Engineering Virtual Clusters
Requirements
The below requirements are needed on the host that executes this module.
cdpy
Parameters
Parameter |
Comments |
---|---|
Comma-separated Workload usernames of CDP users to be granted access to the Virtual Cluster. |
|
Chart overrides for creating a virtual cluster. |
|
The key/value pair for the chart_name/override |
|
Cluster id of the CDE service where virtual cluster has to be created. |
|
Cpu requests for autoscaling. |
|
The internal polling interval (in seconds) while the module waits for the DE virtual cluster to achieve the declared state. Default: |
|
Memory requests for autoscaling - eg. 30Gi. |
|
The name of the CDE Virtual Cluster |
|
Used to describe where the Driver and the Executors would run, on-demand or spot instances. |
|
Spark version for the virtual cluster (e.g. SPARK2 or SPARK3). |
|
The declarative state of the CDE virtual cluster Choices:
|
|
The internal polling timeout (in seconds) while the module waits for the DE virtual cluster to achieve the declared state. Default: |
|
Flag to enable internal polling to wait for the DE virtual cluster to achieve the declared state. If set to FALSE, the module will return immediately. Choices:
|
Examples
# Create a CDE virtual cluster
- cloudera.cloud.de_virtual_cluster:
name: virtual-cluster-name
cluster_name: cde-service-name
env: cdp-environment-name
state: present
wait: True
delay: 30
timeout: 600
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
DE virtual cluster Returned: always |
|
Access control object for the Virtual Cluster Returned: always |
|
Workload usernames of CDP users granted access to the Virtual Cluster. Returned: always |
|
Chart overrides for the CDE virtual cluster. Returned: always |
|
Returned: always |
|
Name of the chart that has to be overridden. Returned: always |
|
Space separated key value-pairs for overriding chart values (colon separated) Returned: always |
|
Cluster ID of the CDE service that contains the Virtual Cluster Returned: always |
|
Time of creation of the virtual Cluster Returned: always |
|
Email address of the creator of Virtual Cluster Returned: always |
|
ID of the creator of Virtual Cluster Returned: always |
|
Name of the creator of the Virtual Cluster Returned: always |
|
Spark History Server URL for the Virtual Cluster Returned: always |
|
Livy Server URL for the Virtual Cluster Returned: always |
|
Resources details of CDE virtual cluster. Returned: always |
|
Object to store resources for a CDE service. Returned: always |
|
Actual CPU request for the VC. This accounts for other dex apps(eg. livy, airflow), that run in the virtual cluster. Returned: always |
|
Actual Memory request for the VC. This accounts for other dex apps(eg. livy, airflow), that run in the virtual cluster. Returned: always |
|
The CPU requests for VC for running spark jobs. Returned: always |
|
The Memory requests for VC for running spark jobs. Returned: always |
|
Safari URL for the Virtual Cluster Returned: always |
|
Spark version for the virtual cluster Returned: always |
|
Status of the Virtual Cluster Returned: always |
|
Url for the Virtual Cluster APIs Returned: always |
|
Virtual Cluster ID Returned: always |
|
Name of the CDE Virtual Cluster Returned: always |
|
URL of the CDE Virtual Cluster UI Returned: always |