source: trunk/sara_cmt/templates/lisa/cf-runagent.lisa.cmt @ 13620

Last change on this file since 13620 was 13620, checked in by bas, 12 years ago

changed the template to only include computnode, loginnode or software node

  • Property svn:keywords set to Id URL
File size: 1.3 KB
Line 
1# This file is automagicly generated by SARA CMT
2#
3#               SARA - Computing and Networking Services
4# Date        : Wed, 18 Aug 2010
5# Version     : {{ version }}
6# Generated   : {% now "r" %}
7#
8# Description :
9#
10# SVN:
11#       {{ svn_id }}
12#       {{ svn_url }}
13#
14{% load cmts_extras %}
15{% noblanklines %}
16
17{% store /data/cfengine3/cf-runagent/hosts.lisa as output %}
18{% use HardwareUnit with 'cluster__name=Lisa' as lisa_hosts %}
19
20#{% epilogue %}
21#/usr/bin/scp /usr/sara/etc/cfengine3/hosts.lisa cfengine3:/data/cfengine3/cf-runagent
22#{% endepilogue %}
23
24body runagent control
25{
26        any::
27                # Hack else we can not use it. Lisa cluster has the same keys for
28                # compute nodes.
29                #
30                trustkey                => "true";
31                max_children            => "40";
32                background_children     => "true";
33
34                output_to_file          => "true";
35                output_directory        => "/var/log/cf-runagent/lisa";
36
37                hosts => {
38{% for hw in lisa_hosts %}
39  {% for i in hw.interfaces.all %}
40    {% if i.network.name == 'lisa admin' %}
41      {% if "loginnode" in hw.roles or "computenode" in hw.roles or "software node" in hw.roles %}
42
43                         "{{ i.fqdn }}",
44
45      {% endif %}
46    {% endif %}
47  {% endfor %}
48{% endfor %}
49                };
50}
51{% endnoblanklines %}
Note: See TracBrowser for help on using the repository browser.