-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(spnego): add ha support with kerberos
- Loading branch information
Showing
5 changed files
with
42 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Copyright 2022 TOSIT.IO | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
--- | ||
- name: Ensure HTTP HA spnego user's principal and keytab exist | ||
ansible.builtin.import_role: | ||
name: tosit.tdp.utils.kerberos | ||
tasks_from: create_headless_principal_keytab | ||
vars: | ||
principal: HTTP/{{ ranger_ha_address | urlsplit("hostname") }} | ||
keytab: '{{ ranger_ha_address | urlsplit("hostname") }}.service.keytab' | ||
user: root | ||
group: "{{ hadoop_group }}" | ||
mode: "0640" | ||
when: ranger_ha_address is defined | ||
|
||
- name: Ensure HA HTTP spnego's keytab is working | ||
ansible.builtin.import_role: | ||
name: tosit.tdp.utils.kerberos | ||
tasks_from: check_secure_keytab | ||
vars: | ||
principal: HTTP/{{ ranger_ha_address | urlsplit("hostname") }} | ||
keytab: '{{ ranger_ha_address | urlsplit("hostname") }}.service.keytab' | ||
user: root | ||
group: "{{ hadoop_group }}" | ||
mode: "0640" | ||
when: ranger_ha_address is defined |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters