Commit graph

15 commits

Author SHA1 Message Date
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
Severin Schols
b4e5c0ce5c
Update link to example in README.rst
pillar.example seems to have been moved to the root of the repository. Tried to make it a link but that only seems to work in Markdown, not in RST 🤷‍♂️
2018-10-26 22:24:42 +02:00
Robin Björklin
47fe92ac88 fix formatting for yaml blocks 2018-09-26 12:48:36 +02:00
Alexandre Anriot
82726fdb48 Add support for inline-signing, see #64 for details 2018-06-07 14:34:27 +02:00
Javier Bértoli
02ff055688
Merge pull request #92 from aanriot/master
Allow to use external zone files
2018-05-31 08:21:36 -03:00
Javier Bértoli
d1249949a8 Add basic testing scaffold, with travis support 2018-05-26 19:00:05 -03:00
Alexandre Anriot
1b421d869e Update documentation accordingly 2018-05-04 14:18:15 +02:00
Javier Bértoli
b7dc95ddbf Allow to generate zone files from pillar data 2017-07-12 08:38:07 -03:00
Florian
264c296672 fix broken zones_source_dir on RedHat/Debian
Als add docs for how to overwrite the path.

Fixes saltstack-formulas/bind-formula#60?
2016-06-01 19:17:27 +02:00
root
c9a480c992 Update example pillar in README to better reflect basic configuration. 2015-03-22 22:10:01 +01:00
root
2cef37f747 Add support for views. 2015-03-22 22:07:22 +01:00
Nitin Madhok
532d9a8a09 Update README.rst 2014-07-30 13:06:10 -04:00
Nitin Madhok
578b0a80fa Update README.rst
Fix broken link
2014-07-28 19:44:47 -04:00
Seth House
f43b760240 Split bind formula into two states; added map; added pillar examples 2013-09-03 15:51:19 -06:00
Thomas S Hatch
9c55cc941c Set up initial readme 2013-06-12 23:39:14 -04:00