Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (29 sloc) 0.693 kb
body common control
{
bundlesequence => { "test" };
}
bundle agent test
{
files:
"/tmp/motd"
edit_line => my_motd,
edit_defaults => empty,
create => "true";
}
bundle edit_line my_motd
{
vars:
"interfaces_str" string => join(", ","sys.interfaces");
"ipaddresses_str" string => join(", ","sys.ip_addresses");
insert_lines:
"Welcome to $(sys.fqhost)!
This system is managed by CFEngine.
The policy was last updated on $(sys.last_policy_update).
The system has $(sys.cpus) cpus.
Network interfaces on this system are $(interfaces_str),
and the ip-addresses assigned are $(ipaddresses_str).";
}
body edit_defaults empty
{
empty_file_before_editing => "true";
}
Jump to Line
Something went wrong with that request. Please try again.