From 2e5730c82d4b901f763ccd53182c77bb1b02a549 Mon Sep 17 00:00:00 2001 From: crux-capacitor Date: Thu, 15 Nov 2018 13:43:46 -0500 Subject: [PATCH] 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. --- pillar-with-views.example | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pillar-with-views.example b/pillar-with-views.example index f95e5b8..bb5bdb9 100644 --- a/pillar-with-views.example +++ b/pillar-with-views.example @@ -20,6 +20,8 @@ bind: type: master file: external.mydomain.com.txt # Specify the file to be used, which must match the file recursion: yes # name of the zone below under available_zones. + # This filename also must match the corresponding zone name + # without the .txt extension (and be sure to use .txt as the extension). notify: False dnssec: False @@ -30,6 +32,8 @@ bind: mydomain.com: # Same as above - both views will serve the same zone. type: master file: internal.mydomain.com.txt # Different file - matches the internal zone below. + # Again, this filename must match the corresponding zone name + # without the .txt extension (and be sure to use .txt as the extension). recursion: yes notify: False dnssec: False