Skip to content

Commit 0e3b593

Browse files
committed
Check public subnet count for public load balancer
Signed-off-by: Webster Mudge <wmudge@cloudera.com>
1 parent 10b66e6 commit 0e3b593

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

roles/runtime/tasks/initialize_setup.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,14 @@
1919

2020
- name: Initialize CDP Runtime setup
2121
ansible.builtin.include_tasks: "initialize_base.yml"
22+
23+
- name: Prepare for CDP DW experiences
24+
when: run__include_dw
25+
block:
26+
- name: Confirm public subnet count CDP DW public load balancer
27+
when: not run__dw_private_load_balancer
28+
ansible.builtin.assert:
29+
that:
30+
- run__public_subnet_ids | length == 3
31+
fail_msg: "Must have exactly 3 public subnets when deploying CDP Data Warehouse with a public load balancer"
32+
quiet: yes

0 commit comments

Comments
 (0)