e6ca2e7c84
There was a request in If3dc95d1348553e5b43683f6a36d324fb978fbed to make the role more generic so it could handle different layouts of zone.db files. Make it so the role can take a list of tuples (domain, path/to/zone.db) so that we can handle any layouts, and modify the default searching to build this from the source directory. Reviews in https://review.opendev.org/660888 suggested making this defined as a generic job, so a validate-zone-db job is added. Change-Id: I56cbc027f63787f90eef283eeb2fbb81486dcaf5
23 lines
815 B
ReStructuredText
23 lines
815 B
ReStructuredText
Validate bind zone.db files
|
|
|
|
This role uses ``named-checkzone`` to validate Bind ``zone.db`` files.
|
|
|
|
**Role Variables**
|
|
|
|
.. zuul:rolevar:: zone_files
|
|
:default: zuul.project.src_dir
|
|
|
|
Look for ``zone.db`` files recursively in this directory. The
|
|
layout should be ``domain.xyz/zone.db`` where a parent directory is
|
|
named for the zone the child ``zone.db`` file describes. This
|
|
populates the ``zone_db_files`` variable. Will not be used if
|
|
``zone_db_files`` is explicitly set per below.
|
|
|
|
.. zuul:rolevar:: zone_db_files
|
|
:default: []
|
|
|
|
A list of ``zone.db`` files to check. Each entry is a list with
|
|
the first element the domain, and the second element the path to
|
|
the ``zone.db`` file. If this variable is set, automatic searching
|
|
described by ``zone_files`` will not be performed.
|