From 9e1d5dcf897874a7e7bf021e779400353b46df4a Mon Sep 17 00:00:00 2001 From: Ken Raffenetti Date: Thu, 19 Oct 2006 02:07:35 +0000 Subject: changed to a django template git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2446 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Hostbase/templates/hosts.tmpl | 20 ++++++++------------ 1 file 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 }} -- cgit v1.2.3-1-g7c22