summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raffenetti <raffenet@mcs.anl.gov>2006-10-19 02:07:35 +0000
committerKen Raffenetti <raffenet@mcs.anl.gov>2006-10-19 02:07:35 +0000
commit9e1d5dcf897874a7e7bf021e779400353b46df4a (patch)
treeae6827e0104083d2829f07e0c8376e994092bda6 /src
parentc81d001f9a4bc5240318bffb4087170539f7aeda (diff)
downloadbcfg2-9e1d5dcf897874a7e7bf021e779400353b46df4a.tar.gz
bcfg2-9e1d5dcf897874a7e7bf021e779400353b46df4a.tar.bz2
bcfg2-9e1d5dcf897874a7e7bf021e779400353b46df4a.zip
changed to a django template
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2446 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Hostbase/templates/hosts.tmpl20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/lib/Server/Hostbase/templates/hosts.tmpl b/src/lib/Server/Hostbase/templates/hosts.tmpl
index e06183ac6..e104333c9 100644
--- a/src/lib/Server/Hostbase/templates/hosts.tmpl
+++ b/src/lib/Server/Hostbase/templates/hosts.tmpl
@@ -2,29 +2,25 @@
# MCS hosts file
#
# This file is generated automatically - DO NOT EDIT IT.
-# To create this file, do 'make hosts' in "hostbase".
#
-# Generated on: Wed Jan 4 20:34:34 CST 2006
+# Generated on: {{ timecreated }}
#
127.0.0.1 localhost.mcs.anl.gov localhost
# This file lists hosts in these domains:
-#for $domain in $domain_data
-# ${domain[0]}: ${domain[1]}
-#end for
+{% for domain in domain_data %}{{ domain.0 }}: {{ domain.1 }}
+{% endfor %}
#
# This file lists hosts on these networks:
#
# Network Hosts
# ---------------------------------------------------------------------
-#for $octet in $two_octets_data
-# ${octet[0]} ${octet[1]}
-#end for
+{% for octet in two_octets_data %}{{ octet.0 }} {{octet.1 }}
+{% endfor %}
#
-#for $octet in $three_octets_data
-# ${octet[0]} ${octet[1]}
-#end for
+{% for octet in three_octets_data %}{{ octet.0 }} {{ octet.1 }}
+{% endfor %}
#
-# Total host interfaces (ip addresses) in this file: $three_octets
+# Total host interfaces (ip addresses) in this file: {{ three_octets }}