-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
5e4b28e
commit aee41cc
Showing
154 changed files
with
1,622 additions
and
1,301 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
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
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
collections/ansible_collections/authentication/kerberos/roles/check/defaults/main.yml
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
check_kerberos_propagation_principal: "test" | ||
--- | ||
check_kerberos_propagation_principal: test |
19 changes: 10 additions & 9 deletions
19
collections/ansible_collections/authentication/kerberos/roles/check/tasks/main.yml
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 |
---|---|---|
@@ -1,35 +1,36 @@ | ||
--- | ||
- name: Delete existing test kerberos principal | ||
ansible.builtin.command: "kadmin.local -q \"delprinc -force {{ check_kerberos_propagation_principal }}\"" | ||
ansible.builtin.command: kadmin.local -q "delprinc -force {{ check_kerberos_propagation_principal }}" | ||
when: "'kerberos1' in group_names" | ||
|
||
- name: Block for Kerberos primary KDC | ||
when: "'kerberos1' in group_names" | ||
block: | ||
- name: Create test kerberos principal on primary KDC | ||
ansible.builtin.command: "kadmin.local -q \"addprinc -randkey {{ check_kerberos_propagation_principal }}\"" | ||
ansible.builtin.command: kadmin.local -q "addprinc -randkey {{ check_kerberos_propagation_principal }}" | ||
|
||
- name: Get principals of Kerberos primary KDC | ||
ansible.builtin.command: "kadmin.local -q \"listprincs\"" | ||
ansible.builtin.command: kadmin.local -q "listprincs" | ||
register: kerberos_primary_principals | ||
|
||
- name: Print message depending on listprincs output | ||
ansible.builtin.assert: | ||
that: "'{{ check_kerberos_propagation_principal }}@{{ setup_realm }}' in kerberos_primary_principals.stdout" | ||
fail_msg: "Kerberos Principal was not created, see Logs for details" | ||
success_msg: "Kerberos Principal was successfully created" | ||
fail_msg: Kerberos Principal was not created, see Logs for details | ||
success_msg: Kerberos Principal was successfully created | ||
|
||
- name: Block for Kerberos secondary KDC | ||
when: "'kerberos2' in group_names" | ||
block: | ||
- name: Get principals of Kerberos secondary KDC | ||
ansible.builtin.command: "kadmin.local -q \"listprincs\"" | ||
ansible.builtin.command: kadmin.local -q "listprincs" | ||
register: kerberos_secondary_principals | ||
|
||
- name: Print message depending on listprincs output | ||
ansible.builtin.assert: | ||
that: "'{{ check_kerberos_propagation_principal }}@{{ setup_realm }}' in kerberos_secondary_principals.stdout" | ||
fail_msg: "Kerberos database replication failed, see Logs for details" | ||
success_msg: "Kerberos primary and secondary KDC running and Kerberos database replication successfull" | ||
fail_msg: Kerberos database replication failed, see Logs for details | ||
success_msg: Kerberos primary and secondary KDC running and Kerberos database replication successfull | ||
|
||
- name: Delete test kerberos principal | ||
ansible.builtin.command: "kadmin.local -q \"delprinc -force {{ check_kerberos_propagation_principal }}\"" | ||
ansible.builtin.command: kadmin.local -q "delprinc -force {{ check_kerberos_propagation_principal }}" |
1 change: 1 addition & 0 deletions
1
collections/ansible_collections/authentication/kerberos/roles/client/defaults/main.yml
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
--- | ||
setup_realm: "{{ realm | default('COMMUNITY.LAB') }}" | ||
setup_domain: "{{ domain | default('example.com') }}" |
9 changes: 5 additions & 4 deletions
9
collections/ansible_collections/authentication/kerberos/roles/client/tasks/main.yml
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 |
---|---|---|
@@ -1,17 +1,18 @@ | ||
--- | ||
- name: Install necessary packages | ||
ansible.builtin.apt: | ||
name: "krb5-user" | ||
name: krb5-user | ||
state: present | ||
update_cache: true | ||
|
||
- name: Copy krb5.conf | ||
ansible.builtin.template: | ||
src: "krb5.conf" | ||
dest: "/etc/krb5.conf" | ||
src: krb5.conf | ||
dest: /etc/krb5.conf | ||
mode: "0644" | ||
|
||
- name: Create folder /etc/keytabs | ||
ansible.builtin.file: | ||
path: "/etc/keytabs" | ||
path: /etc/keytabs | ||
state: directory | ||
mode: "0755" |
1 change: 1 addition & 0 deletions
1
collections/ansible_collections/authentication/kerberos/roles/get_facts/tasks/main.yml
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
- name: Gather package facts | ||
ansible.builtin.package_facts: | ||
manager: auto |
1 change: 1 addition & 0 deletions
1
collections/ansible_collections/authentication/kerberos/roles/keytab/defaults/main.yml
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
--- | ||
keytab_user: "{% if keytab.keytab_user is defined %}{{ keytab.keytab_user }}{% else %}{{ keytab.principal }}{% endif %}" | ||
keytab_group: "{{ ide_services_group | default('root') }}" |
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
1 change: 1 addition & 0 deletions
1
collections/ansible_collections/authentication/kerberos/roles/keytab/tasks/main.yml
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
13 changes: 7 additions & 6 deletions
13
collections/ansible_collections/authentication/kerberos/roles/server/defaults/main.yml
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
--- | ||
server_primary_kdc_packages: | ||
- "krb5-kdc-ldap" | ||
- "schema2ldif" | ||
- "krb5-admin-server" | ||
- krb5-kdc-ldap | ||
- schema2ldif | ||
- krb5-admin-server | ||
|
||
server_secondary_kdc_packages: | ||
- "krb5-kdc-ldap" | ||
- "schema2ldif" | ||
- "krb5-admin-server" | ||
- krb5-kdc-ldap | ||
- schema2ldif | ||
- krb5-admin-server |
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
Oops, something went wrong.