diff options
Diffstat (limited to '')
-rw-r--r-- | services/applications.cf | 8 | ||||
-rw-r--r-- | services/applications/bareos_fd.cf (renamed from services/bareos_fd.cf) | 4 | ||||
-rw-r--r-- | services/applications/check_mk.cf (renamed from services/check_mk.cf) | 3 | ||||
-rw-r--r-- | services/applications/fcgiwrap.cf | 8 | ||||
-rw-r--r-- | services/applications/sshd.cf (renamed from services/sshd.cf) | 0 |
5 files changed, 23 insertions, 0 deletions
diff --git a/services/applications.cf b/services/applications.cf new file mode 100644 index 0000000..07ac9e0 --- /dev/null +++ b/services/applications.cf @@ -0,0 +1,8 @@ +body file control +{ + inputs => { + "services/applications/bareos_fd.cf", + "services/applications/check_mk.cf", + "services/applications/sshd.cf", + }; +} diff --git a/services/bareos_fd.cf b/services/applications/bareos_fd.cf index 457655d..3b16a91 100644 --- a/services/bareos_fd.cf +++ b/services/applications/bareos_fd.cf @@ -14,6 +14,10 @@ bundle agent bareos_fd classes: freebsd:: "bareos_fd_service_running" expression => returnszero("/usr/sbin/service bareos-fd status", "noshell"); + methods: + freebsd:: + "any" usebundle => install_package("$(bareos_fd.packages)"); + "any" usebundle => add_rc_conf_line("$(bareos_fd.rc_conf_lines)"); files: freebsd:: "/usr/local/etc/bareos/bareos-fd.d/client/myself.conf" diff --git a/services/check_mk.cf b/services/applications/check_mk.cf index fef8549..0731eaa 100644 --- a/services/check_mk.cf +++ b/services/applications/check_mk.cf @@ -25,6 +25,9 @@ bundle agent check_mk classes: freebsd:: "inetd_service_running" expression => returnszero("/usr/sbin/service inetd status", "noshell"); + methods: + freebsd:: + "any" usebundle => add_rc_conf_line("$(check_mk.rc_conf_lines)"); commands: freebsd.!inetd_service_running:: "/usr/sbin/service inetd start" classes => if_repaired("inet_service_repaired"); diff --git a/services/applications/fcgiwrap.cf b/services/applications/fcgiwrap.cf new file mode 100644 index 0000000..af2e8f8 --- /dev/null +++ b/services/applications/fcgiwrap.cf @@ -0,0 +1,8 @@ +bundle common fcgiwrap +{ + vars: + use_fcgiwrap:: + "packages" slist => { + "fcgiwrap", + }; +} diff --git a/services/sshd.cf b/services/applications/sshd.cf index da602a1..da602a1 100644 --- a/services/sshd.cf +++ b/services/applications/sshd.cf |