Skip to content

Commit 35a3e16

Browse files
authored
Add initialization roles to process definition configuration (#112)
Signed-off-by: Webster Mudge <wmudge@cloudera.com>
1 parent 254006d commit 35a3e16

File tree

2 files changed

+36
-6
lines changed

2 files changed

+36
-6
lines changed

pbc_setup.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22

3-
# Copyright 2022 Cloudera, Inc. All Rights Reserved.
3+
# Copyright 2023 Cloudera, Inc. All Rights Reserved.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -14,6 +14,23 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
- name: Init run tasks for Ansible Controller
18+
hosts: localhost
19+
gather_facts: yes
20+
tasks:
21+
- ansible.builtin.include_role:
22+
name: cloudera.exe.init_deployment
23+
public: yes
24+
when: init__completed is undefined
25+
26+
- name: Prepare inventory for PvC Plays
27+
ansible.builtin.include_role:
28+
name: cloudera.exe.init_deployment
29+
public: yes
30+
tasks_from: prep_pvc.yml
31+
tags:
32+
- always
33+
1734
- name: Set up CDP Public Cloud
1835
hosts: localhost
1936
connection: local
@@ -45,29 +62,25 @@
4562
- validate
4663

4764
- name: Initialize Platform setup
48-
#when: sequence__setup_plat | bool
4965
ansible.builtin.import_role:
5066
name: cloudera.exe.platform
5167
tasks_from: initialize_setup
5268
tags:
5369
- initialize
5470

5571
- name: Set up Platform
56-
#when: sequence__setup_plat | bool
5772
ansible.builtin.import_role:
5873
name: cloudera.exe.platform
5974
tasks_from: setup
6075

6176
- name: Initialize Data Services setup
62-
#when: sequence__setup_runtime | bool
6377
ansible.builtin.import_role:
6478
name: cloudera.exe.runtime
6579
tasks_from: initialize_setup
6680
tags:
6781
- initialize
6882

6983
- name: Set up Data Services
70-
#when: sequence__setup_runtime | bool
7184
ansible.builtin.import_role:
7285
name: cloudera.exe.runtime
7386
tasks_from: setup

pbc_teardown.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22

3-
# Copyright 2022 Cloudera, Inc. All Rights Reserved.
3+
# Copyright 2023 Cloudera, Inc. All Rights Reserved.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -14,6 +14,23 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
- name: Init run tasks for Ansible Controller
18+
hosts: localhost
19+
gather_facts: yes
20+
tasks:
21+
- ansible.builtin.include_role:
22+
name: cloudera.exe.init_deployment
23+
public: yes
24+
when: init__completed is undefined
25+
26+
- name: Prepare inventory for PvC Plays
27+
ansible.builtin.include_role:
28+
name: cloudera.exe.init_deployment
29+
public: yes
30+
tasks_from: prep_pvc.yml
31+
tags:
32+
- always
33+
1734
- name: Tear down CDP Public Cloud
1835
hosts: localhost
1936
environment: "{{ globals.env_vars }}"

0 commit comments

Comments
 (0)