diff options
author | Ken Raffenetti <raffenet@mcs.anl.gov> | 2006-10-19 02:07:35 +0000 |
---|---|---|
committer | Ken Raffenetti <raffenet@mcs.anl.gov> | 2006-10-19 02:07:35 +0000 |
commit | 9e1d5dcf897874a7e7bf021e779400353b46df4a (patch) | |
tree | ae6827e0104083d2829f07e0c8376e994092bda6 /src/lib/Server/Hostbase | |
parent | c81d001f9a4bc5240318bffb4087170539f7aeda (diff) | |
download | bcfg2-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/lib/Server/Hostbase')
-rw-r--r-- | src/lib/Server/Hostbase/templates/hosts.tmpl | 20 |
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 }} |