kerberos-kdc: add database backups

Add a script to save a db dump to borg backups.  Add the primary KDC
to our backup list.

Change-Id: I32f4ebc1bb4c1952034aba43c75e4d2f85a1b6d3
This commit is contained in:
Ian Wienand 2021-03-11 13:48:15 +11:00
parent 2254b6e43d
commit 3052ff4935
3 changed files with 15 additions and 2 deletions

View File

@ -59,8 +59,7 @@ The general process is:
(primary-side push) and ``kpropod`` (replica-side listen).
In a disaster recovery situation, we can provision a fresh realm and
recover principals from dump files (XXX: 2020-03-11 ianw -- dump file
backup to come).
recover principals from backup dumps.
.. _addprinc:

View File

@ -24,6 +24,7 @@ groups:
- review-dev[0-9]*.open*.org
- zuul[0-9]*.open*.org
- refstack01.openstack.org
- kdc03.openstack.org
# All these servers are "special-cased" in specifically
# as they are puppet and should be replaced "soon"
- ethercalc02.openstack.org

View File

@ -92,3 +92,16 @@
state: started
enabled: yes
name: krb5-kdc
- name: Setup db backup streaming job
block:
- name: Create backup streaming config dir
file:
path: /etc/borg-streams
state: directory
- name: Create db streaming file
copy:
content: >-
/usr/sbin/kdb5_util dump
dest: /etc/borg-streams/kdb5