Skip to content

Commit 7b3c9ef

Browse files
committed
Check public subnet count for public load balancer
Signed-off-by: Webster Mudge <wmudge@cloudera.com>
1 parent 1c25d5d commit 7b3c9ef

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

roles/runtime/tasks/initialize_setup.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,19 @@
2929
- dw
3030
- opdb
3131
- dh
32+
33+
- name: Prepare for CDP DW experiences
34+
when: run__include_dw
35+
block:
36+
- name: Confirm public subnet count CDP DW public load balancer
37+
when: not run__dw_private_load_balancer
38+
ansible.builtin.assert:
39+
that:
40+
- run__public_subnet_ids | length == 3
41+
fail_msg: "Must have exactly 3 public subnets when deploying CDP Data Warehouse with a public load balancer"
42+
quiet: yes
43+
tags:
44+
- ml
45+
- dw
46+
- opdb
47+
- dh

0 commit comments

Comments
 (0)