diff options
author | Julien Dessaux | 2017-08-04 15:07:24 +0000 |
---|---|---|
committer | Julien Dessaux | 2017-08-08 09:16:23 +0000 |
commit | eae593f3d25ccae5cf138fc15d244ccc05a7a28d (patch) | |
tree | 9d7d056352dd48877320591e58531bb3063d1dde /services | |
parent | Added hosts console and mysql01 (diff) | |
download | masterfiles-eae593f3d25ccae5cf138fc15d244ccc05a7a28d.tar.gz masterfiles-eae593f3d25ccae5cf138fc15d244ccc05a7a28d.tar.bz2 masterfiles-eae593f3d25ccae5cf138fc15d244ccc05a7a28d.zip |
Deploy freebsd check_mk agent
Diffstat (limited to '')
-rw-r--r-- | services/check_mk.cf | 9 | ||||
-rw-r--r-- | services/debian.cf | 1 | ||||
-rw-r--r-- | services/ubuntu.cf | 1 |
3 files changed, 11 insertions, 0 deletions
diff --git a/services/check_mk.cf b/services/check_mk.cf index 90c04b1..ab70c5e 100644 --- a/services/check_mk.cf +++ b/services/check_mk.cf @@ -2,13 +2,17 @@ bundle agent check_mk { vars: freebsd:: + "data" string => '{"freebsd": true}'; "rc_conf_lines" slist => { "inetd_enable=\"YES\"", "inetd_flags=\"-wW\"", }; + !freebsd:: + "data" string => '{"freebsd": false}'; files: freebsd:: "/etc/rc.conf" + create => "true", edit_defaults => std_defs, perms => system_owned("444"), edit_line => append_if_no_line("$(rc_conf_lines)"), @@ -23,6 +27,10 @@ bundle agent check_mk perms => system_owned("444"), edit_line => append_if_no_line("check_mk_agent stream tcp nowait root /usr/local/bin/check_mk_agent check_mk_agent"), classes => if_repaired("check_mk_inetd_conf_file_repaired"); + "/usr/local/bin/check_mk_agent" + perms => system_owned("555"), + copy_from => local_cp("$(sys.inputdir)/templates/check_mk/check_mk_agent.freebsd"), + classes => if_repaired("check_mk_agent_repaired"); classes: freebsd:: "sshd_service_running" expression => returnszero("/usr/sbin/service sshd status", "noshell"); @@ -36,6 +44,7 @@ bundle agent check_mk "$(this.bundle): /etc/rc.conf repaired" ifvarclass => "check_mk_rc_conf_file_repaired"; "$(this.bundle): /etc/services repaired" ifvarclass => "check_mk_services_file_repaired"; "$(this.bundle): /etc/inetd.conf repaired" ifvarclass => "check_mk_inetd_conf_file_repaired"; + "$(this.bundle): /usr/local/bin/check_mk_agent repaired" ifvarclass => "check_mk_agent_repaired"; "$(this.bundle): inetd service repaired" ifvarclass => "inetd_service_repaired"; "$(this.bundle): inetd service restarted" ifvarclass => "inetd_service_restarted"; } diff --git a/services/debian.cf b/services/debian.cf index 4fe3a75..920816b 100644 --- a/services/debian.cf +++ b/services/debian.cf @@ -18,6 +18,7 @@ bundle common flavour "tmux", "tree", "vim", + "wget", }; debian&!containers:: "packages" slist => { diff --git a/services/ubuntu.cf b/services/ubuntu.cf index f8fc91a..9b711a3 100644 --- a/services/ubuntu.cf +++ b/services/ubuntu.cf @@ -18,6 +18,7 @@ bundle common flavour "tmux", "tree", "vim", + "wget", }; ubuntu&!containers:: "packages" slist => { |