Cfengine 3 example unit_syslog2.html

# # With Nova, log directly to a central server -- careful of scalability (UDP) # body common control { bundlesequence => { "test" }; syslog_host => "loghost.example.org"; host_licenses_paid => "1"; } # bundle agent test { vars: "software" slist => { "/root/xyz", "/tmp/xyz" }; files: "$(software)" create => "true", action => logme("$(software)"); } # body action logme(x) { log_repaired => "udp_syslog"; log_string => "cfengine repaired promise $(this.handle) - $(x)"; }