Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(knox): add ha support for livy #864

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
6 changes: 4 additions & 2 deletions tdp_vars_defaults/knox/knox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,13 @@ tdpldap_services:
hosts: "{{ groups['hbase_master'] | default([]) | map('tosit.tdp.access_fqdn', hostvars) | list }}"
port: "{{ hbase_master_info_port }}"
LIVYSERVER:
hosts: "{% if groups['livy_server'] is defined %}{{ groups['livy_server'] | default([]) | map('tosit.tdp.access_fqdn', hostvars) | list }}{% else %}{% endif %}"
hosts: "{% if livy_ha_address is defined %}{{ livy_ha_address | urlsplit('hostname') | split(' ') | list }}{% else %}{% if groups['livy_server'] is defined %}{{ groups['livy_server'] | default([]) | map('tosit.tdp.access_fqdn', hostvars) | list }}{% else %}{% endif %}{% endif %}"
port: "8998"
scheme: "{% if livy_ha_address is defined %}{{ livy_ha_address | urlsplit('scheme') }}://{% else %}https://{% endif %}"
LIVYSERVER3:
hosts: "{% if groups['livy_spark3_server'] is defined %}{{ groups['livy_spark3_server'] | default([]) | map('tosit.tdp.access_fqdn', hostvars) | list }}{% else %}{% endif %}"
hosts: "{% if livy3_ha_address is defined %}{{ livy3_ha_address | urlsplit('hostname') | split(' ') | list }}{% else %}{% if groups['livy_spark3_server'] is defined %}{{ groups['livy_spark3_server'] | default([]) | map('tosit.tdp.access_fqdn', hostvars) | list }}{% else %}{% endif %}{% endif %}"
port: "8999"
scheme: "{% if livy3_ha_address is defined %}{{ livy3_ha_address | urlsplit('scheme') }}://{% else %}https://{% endif %}"

# Service start on boot policies
knox_start_on_boot: no
Expand Down
Loading