cloudera.cloud.dw_virtual_warehouse module – Create, manage, and destroy CDP Data Warehouse Virtual Warehouses
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_virtual_warehouse
.
Synopsis
Create CDP Virtual Warehouse
Requirements
The below requirements are needed on the host that executes this module.
cdpy
Parameters
Parameter |
Comments |
---|---|
Configurations that are applied to specific applications in the Virtual Warehouse service. |
|
The application name or identifier. |
|
List of ConfigBlocks for the specified application. |
|
Contents of a ConfigBlock. |
|
JSON type configuration. |
|
Key-value type configuration. |
|
Text type configuration. |
|
Format of ConfigBlock. |
|
ID of the ConfigBlock. Unique within an ApplicationConfig. |
|
Auto-scaling configuration for a Virtual Warehouse |
|
Auto suspend threshold for Virtual Warehouse. |
|
Turn off auto suspend for Virtual Warehouse. Choices:
|
|
Set Desired free capacity for Hive Virtual Wearhouses. Either hive_scale_wait_time_seconds or hive_desired_free_capacity can be provided. |
|
Set wait time before a scale event happens for Hive Virtual Wearhouses. Either hive_scale_wait_time_seconds or hive_desired_free_capacity can be provided. |
|
Scale down threshold in seconds for Impala Virtual Wearhouses. |
|
Scale up threshold in seconds for Impala Virtual Wearhouses. |
|
The maximum number of available nodes for Virtual Warehouse autoscaling. |
|
The minimum number of available nodes for Virtual Warehouse autoscaling. |
|
Name of the pod configuration. |
|
The identifier of the parent Database Catalog attached to the Virtual Warehouse. Required if |
|
Specify the Cloudera Data Platform endpoint region. Default: |
|
The identifier of the parent Data Warehouse Cluster of the Virtual Warehouse. |
|
Configurations that are applied to every application in the Virtual Warehouse service. |
|
List of ConfigBlocks for the application. |
|
Contents of the ConfigBlock. |
|
JSON type configuration. |
|
Key-value type configuration. |
|
Text type configuration. |
|
Format of the ConfigBlock. Choices:
|
|
ID of the ConfigBlock. Unique within an ApplicationConfig. |
|
Capture the CDP SDK debug log. Choices:
|
|
The internal polling interval (in seconds) while the module waits for the Virtual Warehouse to achieve the declared state. Default: |
|
Flag to configure the Virtual Warehouse to support JWTs issues by the CDP JWT token provider. Choices:
|
|
Flag to enable Single Sign-On (SSO) for the Virtual Warehouse. Choices:
|
|
Flag to enable Unified Analytics for the Virtual Warehouse. This can only be specified in the case of Impala Virtual Warehouses. Choices:
|
|
High Availability settings for a Impala Virtual Warehouse |
|
Enables a backup instance for Impala catalog to ensure high availability. Choices:
|
|
Enables a shutdown of the coordinator. If Unified Analytics is enabled, then this setting is explicitly disabled and should not be provided. Choices:
|
|
Set High Availability mode. Choices:
|
|
The number of active coordinators. |
|
Delay in seconds before the shutdown of coordinator event happens. |
|
LDAP Groupnames to enabled for authentication to the Virtual Warehouse. |
|
The name of the Virtual Warehouse. Required if |
|
If provided, the CDP SDK will use this value as its profile. |
|
The declarative state of the Virtual Warehouse Choices:
|
|
Key-value tags associated with the Virtual Warehouse cloud provider resources. |
|
The name of deployment template for the Virtual Warehouse Choices:
|
|
The internal polling timeout (in seconds) while the module waits for the Virtual Warehouse to achieve the declared state. Default: |
|
The type of Virtual Warehouse to be created. Required if Choices:
|
|
Verify the TLS certificates for the CDP endpoint. Choices:
|
|
Flag to enable internal polling to wait for the Virtual Warehouse to achieve the declared state. If set to FALSE, the module will return immediately. Choices:
|
|
The identifier of the Virtual Warehouse. Required if |
Examples
# Note: These examples do not set authentication details.
# Create a Virtual Warehouse
- cloudera.cloud.dw_virtual_warehouse:
cluster_id: example-cluster-id
name: example-virtual-warehouse
type: hive
template: xsmall
autoscaling:
min_nodes: 3
max_nodes: 19
tags:
some_key: "some value"
enable_sso: true
ldap_groups: ['group1', 'group2', 'group3']
# Create a Virtual Warehouse with configurations
- cloudera.cloud.dw_virtual_warehouse:
cluster_id: example-cluster-id
name: example-virtual-warehouse
type: "hive"
template: "xsmall"
enable_sso: true
ldap_groups: ['group1','group2','group3']
common_configs:
configBlocks:
- id: das-ranger-policymgr
format: HADOOP_XML
content:
keyValues:
'xasecure.policymgr.clientssl.truststore': '/path_to_ca_cert/cacerts'
application_configs:
das-webapp:
configBlocks:
- id: hive-kerberos-config
format: TEXT
content:
text: "\n[libdefaults]\n\trenew_lifetime = 7d"
# Delete a Virtual Warehouse
- cloudera.cloud.dw_virtual_warehouse:
cluster_id: example-cluster-id
warehouse_id: example-virtual-warehouse-id
state: absent
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 details about the CDP Data Warehouse Virtual Warehouse. Returned: success |
|
The creation time of the Virtual Warehouse in UTC. Returned: always |
|
Details about the Virtual Warehouse creator. Returned: always |
|
The creator’s Actor CRN. Returned: always |
|
Email address (for users). Returned: when supported |
|
Username (for machine users). Returned: when supported |
|
Username (for users). Returned: when supported |
|
The Database Catalog ID associated with the Virtual Warehouse. Returned: always |
|
The identifier of the Virtual Warehouse. Returned: always |
|
The name of the Virtual Warehouse. Returned: always |
|
The status of the Virtual Warehouse. Returned: always |
|
Custom tags applied to the Virtual Warehouse. Returned: always |
|
The Virtual Warehouse type. Returned: always |