Skip to content

Commit

Permalink
added Tez gateway verify check
Browse files Browse the repository at this point in the history
  • Loading branch information
William Dyson committed Nov 12, 2021
1 parent b670329 commit 6bfad54
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions roles/verify/parcels_and_roles/tasks/check_template_roles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
| map('regex_replace','/.+','')
| difference(role_mappings[template.service] | list)
}}
- name: Ensure the host template service roles are valid
assert:
that: "{{ invalid_roles | length == 0 }}"
Expand All @@ -31,3 +32,12 @@
fail_msg: >-
Unknown role(s) {{ invalid_roles }} for service '{{ template.service }}'
defined in host template '{{ host_template.name }}'.
- name: Ensure the Tez gateway has been deployed
assert:
that: "{{ 'GATEWAY' in (host_template.mappings['TEZ'] | default({})) }}"
success_msg: The Tez gateway has been included as required
fail_msg: The Tez gateway should be colocated with Hive On Tez roles
when:
- template.service == 'HIVE_ON_TEZ'
- "'HIVESERVER2' in template.roles or 'GATEWAY' in template.roles"

0 comments on commit 6bfad54

Please sign in to comment.