blob: 22d045d3ef0cd28e6c2cc6483040d01d3bd2c5b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
bundle agent cfengine_watchdog
{
vars:
systemd::
"data" string => '{"systemd": true}';
!systemd::
"data" string => '{"systemd": false}';
files:
any::
"/etc/cron.d/cfengine_watchdog"
create => "true",
perms => system_owned("444"),
edit_template => "$(sys.inputdir)/templates/cfengine/cfengine_watchdog",
template_method => "mustache",
template_data => parsejson("$(data)"),
classes => if_repaired("cfengine_watchdog_repaired");
reports:
any::
"$(this.bundle): /etc/cron.d/cfengine_watchdog repaired" ifvarclass => "cfengine_watchdog_repaired";
}
|