1#
2# With Nova, log directly to a central server -- careful of scalability (UDP)
3#
4
5body common control
6{
7      bundlesequence => { "example" };
8      syslog_host => "loghost.example.org";
9}
10
11#
12
13bundle agent example
14{
15  vars:
16
17      "software" slist => { "/root/xyz", "/tmp/xyz" };
18
19  files:
20
21      "$(software)"
22
23      create => "true",
24      action => logme("$(software)");
25
26}
27
28#
29
30body action logme(x)
31{
32      log_repaired => "udp_syslog";
33      log_string => "cfengine repaired promise $(this.handle) - $(x)";
34}
35