summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--services/check_mk.cf9
-rw-r--r--services/debian.cf1
-rw-r--r--services/ubuntu.cf1
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 => {