Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions docs/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,20 @@ For example, to add a pre-deploy role:
- plat
- run
- animals
- ml
- dw
- opdb
- dh
tags:
- validate
- infra
- plat
- run
- animals
- ml
- dw
- opdb
- dh
- name: Import the core Runlevels (and their tags)
ansible.builtin.import_role:
name: cloudera.exe.sequence
Expand Down Expand Up @@ -158,12 +166,20 @@ For example, adding an explicit `install` tag to execute the [Installation](runl
- plat
- run
- install
- ml
- dw
- opdb
- dh
tags:
- validate
- infra
- plat
- run
- install
- ml
- dw
- opdb
- dh

- name: Validate Platform Configuration
ansible.builtin.include_role:
Expand All @@ -175,11 +191,19 @@ For example, adding an explicit `install` tag to execute the [Installation](runl
- plat
- run
- install
- ml
- dw
- opdb
- dh
tags:
- validate
- plat
- run
- install
- ml
- dw
- opdb
- dh

- name: Validate Runtime Configuration
ansible.builtin.include_role:
Expand All @@ -190,10 +214,18 @@ For example, adding an explicit `install` tag to execute the [Installation](runl
- validate
- run
- install
- ml
- dw
- opdb
- dh
tags:
- validate
- run
- install
- ml
- dw
- opdb
- dh

- name: Validate Installation Configuration
ansible.builtin.include_role:
Expand Down
3 changes: 3 additions & 0 deletions roles/runtime/tasks/initialize_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@

- name: Prepare for CDP Datahub clusters
when: run__include_datahub
tags: dh
block:
- name: Retrieve Image Catalog File
ansible.builtin.uri:
Expand Down Expand Up @@ -121,6 +122,7 @@
loop: "{{ run__datahub_configs }}"

- name: Prepare for CDP OpDB experiences
tags: opdb
when: run__include_opdb
block:
- name: Construct OpDB Configurations
Expand All @@ -136,6 +138,7 @@
label: "{{ config.name }}"

- name: Prepare for CDP ML Workspace experiences
tags: ml
when: run__include_ml
block:
- name: Construct CDP ML Workspace configurations
Expand Down
10 changes: 10 additions & 0 deletions roles/runtime/tasks/initialize_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@

- name: Include provider-specific tasks to initialize Runtime setup
ansible.builtin.include_tasks: "initialize_setup_{{ run__infra_type }}.yml"
tags:
- ml
- dw
- opdb
- dh

- name: Initialize CDP Runtime setup
ansible.builtin.include_tasks: "initialize_base.yml"
tags:
- ml
- dw
- opdb
- dh
8 changes: 8 additions & 0 deletions roles/runtime/tasks/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@

- name: Include Tasks to Setup CDP Public Runtimes
ansible.builtin.include_tasks: "setup_base.yml"
tags:
- ml
- dw
- opdb
- dh

- name: Include Tasks to Setup provider-specific CDP Public Runtimes
ansible.builtin.include_tasks: "setup_{{ run__infra_type }}.yml"
tags:
- dw
- dh
2 changes: 2 additions & 0 deletions roles/runtime/tasks/setup_aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

- name: Set up AWS EC2 metadata for CDP Datahubs
when: run__include_datahub
tags: dh
block:
- name: Retrieve AWS EC2 instance details
community.aws.ec2_instance_info:
Expand All @@ -36,6 +37,7 @@

- name: Setup CDP DW cluster on AWS
when: run__include_dw
tags: dw
block:
- name: Execute CDP DW cluster setup
cloudera.cloud.dw_cluster:
Expand Down
8 changes: 8 additions & 0 deletions roles/runtime/tasks/setup_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

- name: Request CDP Datahub deployments
when: run__include_datahub
tags: dh
cloudera.cloud.datahub_cluster:
name: "{{ __datahub_config_item.name }}"
env: "{{ run__env_name }}"
Expand All @@ -37,6 +38,7 @@

- name: Execute CDP ML Workspace experiences setup
when: run__include_ml
tags: ml
cloudera.cloud.ml:
name: "{{ __ml_config_item.name }}"
env: "{{ run__env_name }}"
Expand Down Expand Up @@ -89,6 +91,7 @@

- name: Execute CDP OpDB setup
when: run__include_opdb
tags: opdb
cloudera.cloud.opdb:
name: "{{ __opdb_config_item.name }}"
env: "{{ run__env_name }}"
Expand All @@ -104,6 +107,7 @@

- name: Execute CDP Dataflow setup
when: run__include_df
tags: df
cloudera.cloud.df_service:
env_crn: "{{ run__cdp_env_crn }}"
nodes_min: "{{ run__df_nodes_min }}"
Expand All @@ -118,6 +122,7 @@

- name: Wait for CDP Datahub deployments to complete
when: run__include_datahub
tags: dh
ansible.builtin.async_status:
jid: "{{ __datahub_build_item.ansible_job_id }}"
loop_control:
Expand All @@ -131,6 +136,7 @@

- name: Wait for CDP ML Workspace experiences to complete
when: run__include_ml
tags: ml
ansible.builtin.async_status:
jid: "{{ __ml_build.ansible_job_id }}"
loop_control:
Expand All @@ -157,6 +163,7 @@

- name: Wait for CDP OpDB deployments to complete
when: run__include_opdb
tags: opdb
ansible.builtin.async_status:
jid: "{{ __opdb_build.ansible_job_id }}"
loop_control:
Expand All @@ -170,6 +177,7 @@

- name: Wait for CDP Dataflow deployment to complete
when: run__include_df
tags: df
cloudera.cloud.df_service:
env_crn: "{{ run__cdp_env_crn }}"
wait: yes
Expand Down
2 changes: 2 additions & 0 deletions roles/runtime/tasks/validate_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# limitations under the License.

- name: Check OpDB database names
tags: opdb
when:
- run__include_opdb
- "'name' in __opdb_definition"
Expand All @@ -29,6 +30,7 @@
loop: "{{ run__opdb_definitions }}"

- name: Check Datahub names
tags: dh
when:
- run__include_datahub
- "'name' in __datahub_definition"
Expand Down
72 changes: 70 additions & 2 deletions roles/sequence/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,20 @@
- infra
- plat
- run
- ml
- dw
- opdb
- dh
tags:
- validate
- infra
- plat
- run

- ml
- dw
- opdb
- dh

- name: Validate Platform Configuration
ansible.builtin.include_role:
name: cloudera.exe.platform
Expand All @@ -41,10 +49,18 @@
- validate
- plat
- run
- ml
- dw
- opdb
- dh
tags:
- validate
- plat
- run
- ml
- dw
- opdb
- dh

- name: Validate Runtime Configuration
ansible.builtin.include_role:
Expand All @@ -54,9 +70,17 @@
tags:
- validate
- run
- ml
- dw
- opdb
- dh
tags:
- validate
- run
- ml
- dw
- opdb
- dh

- name: Initialize Runtime Teardown
ansible.builtin.include_role:
Expand Down Expand Up @@ -147,11 +171,19 @@
- infra
- plat
- run
- ml
- dw
- opdb
- dh
tags:
- init
- infra
- plat
- run
- ml
- dw
- opdb
- dh

- name: Setup Infrastructure
when: sequence__setup_infra | bool
Expand All @@ -163,10 +195,18 @@
- infra
- plat
- run
- ml
- dw
- opdb
- dh
tags:
- infra
- plat
- run
- ml
- dw
- opdb
- dh

- name: Initialize Platform Setup
when: sequence__setup_plat | bool
Expand All @@ -178,10 +218,18 @@
- init
- plat
- run
- ml
- dw
- opdb
- dh
tags:
- init
- plat
- run
- ml
- dw
- opdb
- dh

- name: Setup Platform
when: sequence__setup_plat | bool
Expand All @@ -192,9 +240,17 @@
tags:
- plat
- run
- ml
- dw
- opdb
- dh
tags:
- plat
- run
- ml
- dw
- opdb
- dh

- name: Initialize Runtime Setup
when: sequence__setup_runtime | bool
Expand All @@ -205,9 +261,17 @@
tags:
- init
- run
- ml
- dw
- opdb
- dh
tags:
- init
- run
- ml
- dw
- opdb
- dh

- name: Setup Runtime
when: sequence__setup_runtime | bool
Expand All @@ -218,4 +282,8 @@
tags:
- run
tags:
- run
- run
- ml
- dw
- opdb
- dh