Configure pools.yaml inside Designate role

This adds the ability for a user to configure the Designate
pools.yaml file inside of the role by specifying an attribute.

Because the data required is yaml, it's a nice mapping to specify
the yaml attribute and have it dumped directly to the pools.yaml
file.

This allows users to use attributes from other plays (perhaps setting
up some complex DNS infrastructure in their cloud) and insert them
into Designate without having to write their own template or supply
their own file.

This also invokes the `designate-manage` command to load the pools.yaml
file into the Designate database, and simplifies the tests that
do the pools.yaml needful.

Change-Id: I11a849898bf33aa6b8aa6605296ac7fd733d7c01
This commit is contained in:
Tim Simmons
2017-01-26 20:21:30 +00:00
parent 5ba88401eb
commit 69877f3437
11 changed files with 90 additions and 112 deletions

View File

@@ -12,6 +12,11 @@ This role will install the following services:
* designate-mdns
* designate-sink
The DNS servers Designate will interface with can be defined in the
``designate_pools_yaml`` variable. This is eventually written to the Designate
`pools.yaml <http://docs.openstack.org/developer/designate/pools.html#managing-pools>`_
file.
To clone or view the source code for this repository, visit the role repository
for `os_designate <https://github.com/openstack/openstack-ansible-os_designate>`_.