diff options
author | Julien Dessaux | 2017-10-10 13:40:39 +0200 |
---|---|---|
committer | Julien Dessaux | 2017-10-12 15:35:16 +0200 |
commit | 52f0255bf2a4a016584a34e40326f0735ed79a5c (patch) | |
tree | bac011519d470dd97cc4ba53f4ef5488240746ef /cfengine | |
parent | Updated nagios configs with ubuntu servers and docker services (diff) | |
download | masterfiles-52f0255bf2a4a016584a34e40326f0735ed79a5c.tar.gz masterfiles-52f0255bf2a4a016584a34e40326f0735ed79a5c.tar.bz2 masterfiles-52f0255bf2a4a016584a34e40326f0735ed79a5c.zip |
Initialized alpine linux support
Diffstat (limited to '')
-rw-r--r-- | cfengine/watchdog.cf | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cfengine/watchdog.cf b/cfengine/watchdog.cf index 22d045d..baf3993 100644 --- a/cfengine/watchdog.cf +++ b/cfengine/watchdog.cf @@ -6,7 +6,7 @@ bundle agent cfengine_watchdog !systemd:: "data" string => '{"systemd": false}'; files: - any:: + !alpinelinux:: "/etc/cron.d/cfengine_watchdog" create => "true", perms => system_owned("444"), @@ -14,6 +14,12 @@ bundle agent cfengine_watchdog template_method => "mustache", template_data => parsejson("$(data)"), classes => if_repaired("cfengine_watchdog_repaired"); + alpinelinux:: + "/etc/crontabs/root" + create => "false", + perms => system_owned("400"), + edit_line => append_if_no_line("* * * * * [ -x \"/var/lib/cfengine/bin/cf-execd\" ] && if ! /usr/bin/pgrep cf-execd > /dev/null; then \"/var/lib/cfengine/bin/cf-execd\"; fi"), + classes => if_repaired("cfengine_watchdog_repaired"); reports: any:: "$(this.bundle): /etc/cron.d/cfengine_watchdog repaired" ifvarclass => "cfengine_watchdog_repaired"; |