From 18318b27232d735453f690862bb50e8b45d34abf Mon Sep 17 00:00:00 2001 From: Saravanan Raju Date: Thu, 15 Jul 2021 10:14:21 +0530 Subject: [PATCH 1/3] Add CDW playbook Signed-off-by: Saravanan Raju --- examples/cdw/application.yml | 25 +++++++++++++++++++++++++ examples/cdw/definition.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 examples/cdw/application.yml create mode 100644 examples/cdw/definition.yml diff --git a/examples/cdw/application.yml b/examples/cdw/application.yml new file mode 100644 index 0000000..cc80908 --- /dev/null +++ b/examples/cdw/application.yml @@ -0,0 +1,25 @@ +--- + +# Copyright 2021 Cloudera, Inc. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +- name: Coda + hosts: localhost + connection: local + gather_facts: no + become: no + tasks: + - name: Deployment results + debug: + msg: Success! \ No newline at end of file diff --git a/examples/cdw/definition.yml b/examples/cdw/definition.yml new file mode 100644 index 0000000..9c450cf --- /dev/null +++ b/examples/cdw/definition.yml @@ -0,0 +1,28 @@ +--- + +# Copyright 2021 Cloudera, Inc. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +dw: + overlay_network: no + private_load_balancer: no + private_worker_nodes: yes + definitions: + - use_default_dbc: yes + virtual_warehouses: + - vw_type: "hive" + template: "xsmall" + autoscaling: + min_cluster: 2 + max_cluster: 6 From 7d943509eb2041d30cada0ebdb69af59260aaf04 Mon Sep 17 00:00:00 2001 From: Saravanan Raju Date: Thu, 22 Jul 2021 18:41:45 +0530 Subject: [PATCH 2/3] Remove use_default_dbc Signed-off-by: Saravanan Raju --- examples/cdw/definition.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/cdw/definition.yml b/examples/cdw/definition.yml index 9c450cf..adedbdd 100644 --- a/examples/cdw/definition.yml +++ b/examples/cdw/definition.yml @@ -19,8 +19,7 @@ dw: private_load_balancer: no private_worker_nodes: yes definitions: - - use_default_dbc: yes - virtual_warehouses: + - virtual_warehouses: - vw_type: "hive" template: "xsmall" autoscaling: From 10e35f181a89d2615cb77041b67d43cbbd3fe23f Mon Sep 17 00:00:00 2001 From: Saravanan Raju Date: Fri, 23 Jul 2021 15:29:16 +0530 Subject: [PATCH 3/3] Rename virtual warehouse configs Signed-off-by: Saravanan Raju --- examples/cdw/definition.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/cdw/definition.yml b/examples/cdw/definition.yml index adedbdd..764c454 100644 --- a/examples/cdw/definition.yml +++ b/examples/cdw/definition.yml @@ -20,8 +20,8 @@ dw: private_worker_nodes: yes definitions: - virtual_warehouses: - - vw_type: "hive" - template: "xsmall" - autoscaling: - min_cluster: 2 - max_cluster: 6 + - type: "hive" + template: "xsmall" + autoscaling: + min_nodes: 2 + max_nodes: 6 \ No newline at end of file