summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Hostbase/templates/named.tmpl
diff options
context:
space:
mode:
authorKen Raffenetti <raffenet@mcs.anl.gov>2006-11-09 19:42:58 +0000
committerKen Raffenetti <raffenet@mcs.anl.gov>2006-11-09 19:42:58 +0000
commit2ce370ceda0827b47d976bf388892b34d1117b5e (patch)
tree27d5a92166a4bb20626690f688fa7db92d3f349c /src/lib/Server/Hostbase/templates/named.tmpl
parentbc4a0b7655b17d3183c5436c9f7329772c946751 (diff)
downloadbcfg2-2ce370ceda0827b47d976bf388892b34d1117b5e.tar.gz
bcfg2-2ce370ceda0827b47d976bf388892b34d1117b5e.tar.bz2
bcfg2-2ce370ceda0827b47d976bf388892b34d1117b5e.zip
updates to Hostbase plugin and file templates
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2478 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Hostbase/templates/named.tmpl')
-rw-r--r--src/lib/Server/Hostbase/templates/named.tmpl21
1 files changed, 8 insertions, 13 deletions
diff --git a/src/lib/Server/Hostbase/templates/named.tmpl b/src/lib/Server/Hostbase/templates/named.tmpl
index 5b45e2158..7a227c04e 100644
--- a/src/lib/Server/Hostbase/templates/named.tmpl
+++ b/src/lib/Server/Hostbase/templates/named.tmpl
@@ -15,14 +15,12 @@ zone "." {
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
-
-#for $zone in $zones
-zone "${zone[1]}" {
+{% for zone in zones %}
+zone "{{ zone.1 }}" {
type master;
- file "/etc/bind/${zone[1]}";
-};
+ file "/etc/bind/{{ zone.1 }}";
+};{% endfor %}
-#end for
zone "localhost" {
type master;
file "/etc/bind/db.local";
@@ -42,14 +40,11 @@ zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
-
-#for $reverse in $reverses
-zone "${reverse[0]}.in-addr.arpa" {
+{% for reverse in reverses %}
+zone "{{ reverse.0 }}.in-addr.arpa" {
type master;
- file "/etc/bind/${reverse[0]}.rev";
-};
-
-#end for
+ file "/etc/bind/{{ reverse.0 }}.rev";
+};{% endfor %}
// zone "com" { type delegation-only; };
// zone "net" { type delegation-only; };