]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commit
nameserver: Let records tasks coexist with DDNS 375/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 1 Feb 2018 20:42:36 +0000 (15:42 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 1 Feb 2018 20:48:21 +0000 (15:48 -0500)
commitfe122361b23e1d3b8481b097c8655c4d890f3170
treebbe820d99ca1339811ede8fe8fe5e554cfa11126
parent882b0e6da26b6139c6931ba8d8a96aa516747138
nameserver: Let records tasks coexist with DDNS

It takes about 3 minutes for ansible to compile all the zone files.
That was causing nsupdate/DDNS to overwrite any new records we wanted to
add or change before named could be reloaded.

This PR:
  - Writes zone files to a temporary location
  - Dumps pending DDNS changes into zone files
  - Freezes DDNS zone files from updates
  - Moves temporary zone files into place all at once
  - Unfreezes DDNS zone files

This results in about a 3 second window where DDNS updates will be
refused which isn't great but we can at least update records while OVH
jobs are running now.

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/nameserver/tasks/records.yml