summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Hostbase/templates/hostsappend.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/hostsappend.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/hostsappend.tmpl')
-rw-r--r--src/lib/Server/Hostbase/templates/hostsappend.tmpl24
1 files changed, 5 insertions, 19 deletions
diff --git a/src/lib/Server/Hostbase/templates/hostsappend.tmpl b/src/lib/Server/Hostbase/templates/hostsappend.tmpl
index 0ebd67aee..00e0d5d04 100644
--- a/src/lib/Server/Hostbase/templates/hostsappend.tmpl
+++ b/src/lib/Server/Hostbase/templates/hostsappend.tmpl
@@ -1,19 +1,5 @@
-#raw##########################################################################
-#end raw
-# Hosts on subnet: ${subnet[0]}
-# total hosts: ${subnet[1]}
-#for $ip in $ips
-${ip[0]} ${ip[1]} #slurp
-#if $ip[4] and not $ip[3]:
-# $ip[5]
-#else
-#for $name in $ip[2]
-${name.split('.', 1)[0]} #slurp
-#end for
-#for $cname in $ip[3]
-${cname.split('.', 1)[0]} #slurp
-#end for
-# $ip[5]
-#end if
-#end for
-
+##########################################################################
+# Hosts on subnet: {{ subnet.0 }}
+# total hosts: {{ subnet.1 }}
+{% for ip in ips %}{{ ip.0 }} {{ ip.1 }}{% if ip.4 and not ip.3 %} # {{ ip.5 }}{% else %}{% for name in ip.2 %} {{ name }}{% endfor %}{% for cname in ip.3 %} {{ cname }}{% endfor %} # {{ ip.5 }}{% endif %}
+{% endfor %}