Skip to content

Commit

Permalink
Add assertion for required deploy-time variable
Browse files Browse the repository at this point in the history
  • Loading branch information
marcransome committed Jun 28, 2021
1 parent f3cc2c1 commit cf56531
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 0 additions & 6 deletions roles/deploy/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,6 @@ tuxedo_log_files:
cloudwatch_log_group_name: frontend-tuxedo-xml-ulog

tuxedo_service_group: tuxedo
tuxedo_service_users:
- ceu
- chd
- ewf
- xml

tuxedo_service_ipc_key_start: 48000
tuxedo_service_ipc_key_increment: 100
tuxedo_service_domain_port_start: 38000
Expand Down
1 change: 1 addition & 0 deletions roles/deploy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- name: Check required variables are set
assert:
that:
- tuxedo_service_users is defined and tuxedo_service_users | length > 0
- environment_name is defined and environment_name | trim | length > 0
- application_artifact_path is defined and application_artifact_path | trim | length > 0
- application_configs_path is defined and application_configs_path | trim | length > 0
Expand Down

0 comments on commit cf56531

Please sign in to comment.