bind-formula/bind/files
crux-capacitor 7e47c7658f Squash commits
Update named.conf.local.jinja

Some reorganization of the format.

In the for-loop that handles configured_views:
  - Add if-block on lines 124-128 to allow specifying a file for your view, rather than defaulting to the name of the specified zone. This allows multiple views to serve the same zone, but use a different file.

Update pillar.example

Add documentation and an example on specifying the file to be used for a view, as well as documented that you should not define the top-level 'configured_zones' key when using views.

Small comment update.

Add comment about using ACLs and views.

Create pillar-with-views.example

An example of the bind pillar that defines multiple views for internal and external record sets.

This doesn't include the other portion of the pillar the defines the bind config - this is zones, views and ACLs only. The config portion is not affected by this.

Add more comment clarification.

Add comment explaining file name requirements.

The filename must match the corresponding zone name (without the .txt extension) because the config.sls jinja logic uses the filename to match to the zone when setting zone_records. It also is hardcoded to replace ".txt" with "" in order to make this match work, and so .txt extension is required for the logic to work.

Update config.sls

Add logic to detect a file specified in a view, and match it to a zone under available_zones to enable creating that zone file.

Revert back

Made a bad commit.

Update with the required logic.

Added an if-block to test for the file argument in the zone_data, and if found, use that view and update the zone variable to match the zone defined under available_zones.

Fix variable set.

Set zone based on file with the .txt extension removed.

Update README.rst

Add paragraph about using views.

Update pillar-with-views.example

Add some more comments for explanation.
2018-11-16 16:28:41 -05:00
..
arch Sort hashes 2018-08-31 15:03:48 +02:00
debian Merge pull request #111 from aanriot/master 2018-09-10 08:57:07 -03:00
freebsd Sort hashes 2018-08-31 15:03:48 +02:00
redhat Sort hashes 2018-08-31 15:03:48 +02:00
suse Sort hashes 2018-08-31 15:03:48 +02:00
named.conf.local.jinja Squash commits 2018-11-16 16:28:41 -05:00
named.conf.logging.jinja Refactor named.conf.local & logging across platforms 2018-05-26 19:57:58 -03:00
zone.jinja Use dictsort instead of iteritems 2018-09-04 21:10:24 +02:00