summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Hostbase/templates/reverseappend.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/reverseappend.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/reverseappend.tmpl')
-rw-r--r--src/lib/Server/Hostbase/templates/reverseappend.tmpl16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/lib/Server/Hostbase/templates/reverseappend.tmpl b/src/lib/Server/Hostbase/templates/reverseappend.tmpl
index e4f667d37..64efe6e15 100644
--- a/src/lib/Server/Hostbase/templates/reverseappend.tmpl
+++ b/src/lib/Server/Hostbase/templates/reverseappend.tmpl
@@ -1,12 +1,4 @@
-#if $fileorigin != None
-\$ORIGIN ${fileorigin}.in-addr.arpa.
-#end if
-\$ORIGIN ${inaddr}.in-addr.arpa.
-#for $host in $hosts
-#if $host[2] == 0
-${host[3][3]} PTR ${host[0]}.
-#else
-${host[3][3]} PTR ${host[4][0]}-${host[3][2]}.${host[4][1]}.
-#end if
-#end for
-
+{% if fileorigin %}$ORIGIN {{ fileorigin }}.in-addr.arpa.{% endif %}
+$ORIGIN {{ inaddr }}.in-addr.arpa.
+{% for host in hosts %}{% ifequal host.2 0 %}{{ host.3.3 }} PTR {{ host.0 }}.{% else %}{{ host.3.3 }} PTR {{ host.4.0 }}-{{ host.3.2 }}.{{ host.4.1 }}.{% endifequal %}
+{% endfor %}