- Timestamp:
- 01/28/11 13:41:35 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sara_cmt/templates/gina/cfrun_hosts.cmt
r12437 r12443 2 2 # 3 3 # SARA - Computing and Networking Services 4 # Date : Wed, 18 Aug20104 # Date : Wed, 27 Jan 2010 5 5 # Version : {{ version }} 6 6 # Generated : {% now "r" %} … … 12 12 # $URL$ 13 13 # 14 {% load cmts_extras %}15 {% noblanklines %}14 {% load ramonb_extras %} 15 {% use HardwareUnit with 'cluster__name=Gina' as gina_hosts %} 16 16 17 {% store /usr/sara/etc/cfengine/hosts.all as output %} 18 {% use HardwareUnit with 'cluster__name=Gina' as gina_hosts %} 17 {% getracks 'Gina' as gina_racks %} 18 19 {% for r in gina_racks %} 20 {% assign filename = '/var/tmp/hosts.' r.label '.in' %} 21 22 {% store filename %} 23 {% noblanklines %} 19 24 20 25 outputdir=/data/cfengine/output 21 26 maxchild=100 22 {% for hw in gina_hosts %}23 {% for i in hw.interfaces.all %}24 {% if i.network.name == 'gina admin' and "administration" not in hw.roles %}25 27 26 {{ i.fqdn }} 28 {% for h in gina_hosts %} 29 {% if h.rack.label == r.label %} 30 31 {{ h.label }} 27 32 28 33 {% endif %} 29 34 {% endfor %} 35 36 {% endnoblanklines %} 37 {% endstore %} 38 30 39 {% endfor %} 31 32 {% endnoblanklines %}
Note: See TracChangeset
for help on using the changeset viewer.