system-config/playbooks/roles/kerberos-kdc/tasks/main.yaml
Ian Wienand c1aff2ed38 kerberos-kdc: role to manage Kerberos KDC servers
This adds a role and related testing to manage our Kerberos KDC
servers, intended to replace the puppet modules currently performing
this task.

This role automates realm creation, initial setup, key material
distribution and replica host configuration.  None of this is intended
to run on the production servers which are already setup with an
active database, and the role should be effectively idempotent in
production.

Note that this does not yet switch the production servers into the new
groups; this can be done in a separate step under controlled
conditions and with related upgrades of the host OS to Focal.

Change-Id: I60b40897486b29beafc76025790c501b5055313d
2021-03-17 08:30:52 +11:00

33 lines
532 B
YAML

- name: Install packages
package:
name:
- krb5-kdc
state: present
- name: Ensure directories
file:
path: '{{ item }}'
state: directory
mode: 0755
owner: root
group: root
loop:
- /etc/krb5kdc
- /var/krb5kdc
- name: Install KDC config
template:
src: 'kdc.conf.j2'
dest: '/etc/krb5kdc/kdc.conf'
mode: 0644
owner: root
group: root
- name: Copy kadm5.acl
copy:
src: kadm5.acl
dest: '/etc/krb5kdc/kadm5.acl'
mode: 0644
owner: root
group: root