Skip to content

Commit cdc93f4

Browse files
Change the vw and dbc module names and other minor refactor
Signed-off-by: Saravanan Raju <saravanan.footloose@gmail.com>
1 parent a390711 commit cdc93f4

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

roles/runtime/tasks/initialize_base.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@
190190
name: "{{ item.1.name | default([run__namespace, run__dw_vw_suffix ,__dw_dbc_index] | join('-')) }}"
191191
dbc_name: "{{ dbc_name }}"
192192
use_default_dbc: "{{ use_default_dbc }}"
193-
vw_type: "{{ item.1.vw_type | default('hive') }}"
193+
type: "{{ item.1.type | default('hive') }}"
194194
template: "{{ item.1.template | default('xsmall') }}"
195-
autoscaling_min_cluster: "{{ item.1.autoscaling.min_cluster | default(None) }}"
196-
autoscaling_max_cluster: "{{ item.1.autoscaling.max_cluster | default(None) }}"
195+
autoscaling_min_nodes: "{{ item.1.autoscaling.min_nodes | default(None) }}"
196+
autoscaling_max_nodes: "{{ item.1.autoscaling.max_nodes | default(None) }}"
197197
common_configs: "{{ item.1.configs.common_configs | default({}) }}"
198198
application_configs: "{{ item.1.configs.application_configs | default({}) }}"
199199
ldap_groups: "{{ item.1.configs.ldap_groups | default(None) }}"

roles/runtime/tasks/setup_aws.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969

7070
- name: Create CDP DW Database catalogs
7171
when: not __dw_dbc_config.use_default_dbc
72-
cloudera.cloud.dw_dbc:
72+
cloudera.cloud.dw_database_catalog:
7373
cluster_id : "{{ run__dw_list.clusters[0].id }}"
7474
name: "{{ __dw_dbc_config.name }}"
7575
load_demo_data: "{{ __dw_dbc_config.load_demo_data }}"
@@ -97,22 +97,22 @@
9797
label: "{{ __dw_dbc_build.__dw_dbc_config.name }}"
9898

9999
- name: Set CDP DW Database catalog name to id map
100-
when: __dw_dbc_build_async.dbcs is defined
100+
when: __dw_dbc_build_async.database_catalogs is defined
101101
ansible.builtin.set_fact:
102-
run__dw_dbc_ids: "{{ run__dw_dbc_ids | default({}) | combine({ __dw_dbc_build_async.dbcs[0].name : __dw_dbc_build_async.dbcs[0].id}) }}"
102+
run__dw_dbc_ids: "{{ run__dw_dbc_ids | default({}) | combine({ __dw_dbc_build_async.database_catalogs[0].name : __dw_dbc_build_async.database_catalogs[0].id}) }}"
103103
loop: "{{ __dw_dbc_builds_async.results }}"
104104
loop_control:
105105
loop_var: __dw_dbc_build_async
106106

107107
- name: Create CDP DW Virtual warehouse
108-
cloudera.cloud.dw_vw:
108+
cloudera.cloud.dw_virtual_warehouse:
109109
cluster_id: "{{ run__dw_list.clusters[0].id }}"
110110
dbc_id: "{{ run__dw_dbc_ids[__dw_vw_config.dbc_name] if not __dw_vw_config.use_default_dbc else run__dw_list.clusters[0].dbcs[0].id}}"
111-
vw_type: "{{ __dw_vw_config.vw_type }}"
111+
type: "{{ __dw_vw_config.type }}"
112112
name: "{{ __dw_vw_config.name }}"
113113
template: "{{ __dw_vw_config.template }}"
114-
autoscaling_min_cluster: "{{ __dw_vw_config.autoscaling_min_cluster | int }}"
115-
autoscaling_max_cluster: "{{ __dw_vw_config.autoscaling_max_cluster | int }}"
114+
autoscaling_min_nodes: "{{ __dw_vw_config.autoscaling_min_nodes | int }}"
115+
autoscaling_max_nodes: "{{ __dw_vw_config.autoscaling_max_nodes | int }}"
116116
common_configs: "{{ __dw_vw_config.common_configs }}"
117117
application_configs: "{{ __dw_vw_config.application_configs }}"
118118
ldap_groups: "{{ __dw_vw_config.ldap_groups }}"

0 commit comments

Comments
 (0)