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 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_virtual_warehouse.
New in cloudera.cloud 1.5.0
Synopsis
Create, reconcile, and delete a CDP Data Warehouse (CDW) Virtual Warehouse.
Supports
hive,impala, andtrinoVirtual Warehouses.Trino connector association is declarative and full-sync; the supplied set of connector ids becomes the warehouse’s complete association set. Connectors not listed are detached. At this time, an empty set is a no-op and emits a warning.
Reconciliation of an existing warehouse is limited to the following fields -
node_countandconnectors. Other creation options -tshirt_size,autoscaling,common_configs- are applied at creation time and are not reconciled.The module supports
check_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 |
|
Configurations that are applied to specific applications in the Virtual Warehouse service. Applied at creation only. |
|
Auto-scaling configuration for the Virtual Warehouse. Applied at creation only; not reconciled. |
|
Auto suspend threshold for the Virtual Warehouse. |
|
Turn off auto suspend for the Virtual Warehouse. Choices:
|
|
Desired free capacity for Hive Virtual Warehouses. Either |
|
Wait time before a scale event happens for Hive Virtual Warehouses. Either |
|
Scale down threshold in seconds for Impala Virtual Warehouses. |
|
Scale up threshold in seconds for Impala Virtual Warehouses. |
|
The maximum number of available nodes for autoscaling. |
|
The minimum number of available nodes for autoscaling. |
|
Name of the pod configuration. |
|
The identifier of the parent Database Catalog attached to the Virtual Warehouse. Required if |
|
The identifier of the parent Data Warehouse Cluster of the Virtual Warehouse. |
|
Configurations that are applied to every application in the Virtual Warehouse service. Applied at creation only. |
|
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. |
|
The complete, desired set of Database Connector Only valid for Full-sync semantics; connectors not listed are detached. An empty list is a no-op (does not yet detach all connectors) and emits a warning. |
|
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 Warehouse to achieve the declared state. Default: |
|
Flag to configure the Virtual Warehouse to support JWTs issued by the CDP JWT token provider. Applied at creation only. Choices:
|
|
Flag to enable Single Sign-On (SSO) for the Virtual Warehouse. Applied at creation only. Choices:
|
|
Flag to enable Unified Analytics for the Virtual Warehouse. Only valid for Impala Virtual Warehouses. Applied at creation only. 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 HTTP user agent to use for Cloudera on cloud API requests. Default: |
|
High Availability settings for an Impala Virtual Warehouse. Applied at creation only. |
|
Enables a backup instance for Impala catalog for high availability. Choices:
|
|
Enables a shutdown of the coordinator. If Unified Analytics is enabled, 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. |
|
The underlying compute instance type for the Virtual Warehouse. Applied at creation only. |
|
LDAP group names enabled for authentication to the Virtual Warehouse. Applied at creation only. |
|
The name of the Virtual Warehouse. Required if Used as the lookup key when |
|
The number of nodes (compute cluster size) for the Virtual Warehouse. Reconciled on an existing warehouse. |
|
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: |
|
The declarative state of the Virtual Warehouse.
Choices:
|
|
Legacy CDPy SDK error handling. Choices:
|
|
Key-value tags associated with the Virtual Warehouse cloud provider resources. Applied at creation only. |
|
The internal polling timeout (in seconds) while the module waits for the Virtual Warehouse to achieve the declared state. Default: |
|
The name of deployment T-shirt size, i.e. the deployment template, to use. Applied at creation only; not reconciled on an existing warehouse. Choices:
|
|
Flag to enable internal polling to wait for the Virtual Warehouse to achieve the declared state. If set to Choices:
|
|
The identifier of the Virtual Warehouse. Required if Used as the primary lookup key; takes precedence over |
Attributes
Attribute |
Support |
Description |
|---|---|---|
Support: full |
Can run in check_mode and return changed status prediction without modifying target, if not supported the action will be skipped. |
|
Support: full |
Will return details on what has changed (or possibly needs changing in check_mode), when in diff mode |
|
Platforms: all |
Target OS/families that can be operated against |
Examples
# Note: These examples do not set authentication details.
- name: Create a Hive Virtual Warehouse
cloudera.cloud.dw_virtual_warehouse:
cluster_id: example-cluster-id
catalog_id: example-catalog-id
name: example-hive-vw
type: hive
tshirt_size: xsmall
- name: Create a Trino Virtual Warehouse and associate connectors
cloudera.cloud.dw_virtual_warehouse:
cluster_id: example-cluster-id
catalog_id: example-catalog-id
name: example-trino-vw
type: trino
connectors:
- connector-1783687110-gwv6
- connector-1783688742-pqgw
- name: Reconcile the connector set (full-sync) and resize an existing warehouse
cloudera.cloud.dw_virtual_warehouse:
cluster_id: example-cluster-id
catalog_id: example-catalog-id
name: example-trino-vw
type: trino
node_count: 5
connectors:
- connector-1783687110-gwv6
- name: Delete a Virtual Warehouse
cloudera.cloud.dw_virtual_warehouse:
cluster_id: example-cluster-id
warehouse_id: example-trino-vw-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 debug is true |
|
Returns a list of each line of the captured CDP SDK log. Returned: when debug is true |
|
The details about the CDP Data Warehouse Virtual Warehouse. Returned: always |
|
The connectors associated with the Virtual Warehouse, keyed by connector id. Returned: when available |
|
The identifier of the Virtual Warehouse configuration. Returned: when available |
|
The creation time of the Virtual Warehouse in UTC. Returned: when available |
|
Details about the Virtual Warehouse creator. Returned: when available |
|
The Database Catalog ID associated with the Virtual Warehouse. Returned: when available |
|
The identifier of the Virtual Warehouse. Returned: always |
|
The underlying compute instance type. Returned: when available |
|
The name of the Virtual Warehouse. Returned: always |
|
The node count (compute cluster size) of the Virtual Warehouse. Returned: when available |
|
The status of the Virtual Warehouse. Returned: when available |
|
Custom tags applied to the Virtual Warehouse. Returned: when available |
|
The Virtual Warehouse type. Returned: always |