diff options
author | Ken Raffenetti <raffenet@mcs.anl.gov> | 2006-11-09 19:42:58 +0000 |
---|---|---|
committer | Ken Raffenetti <raffenet@mcs.anl.gov> | 2006-11-09 19:42:58 +0000 |
commit | 2ce370ceda0827b47d976bf388892b34d1117b5e (patch) | |
tree | 27d5a92166a4bb20626690f688fa7db92d3f349c /src/lib/Server/Hostbase/templates/reverseappend.tmpl | |
parent | bc4a0b7655b17d3183c5436c9f7329772c946751 (diff) | |
download | bcfg2-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.tmpl | 16 |
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 %} |