diff options
Diffstat (limited to 'services/applications')
-rw-r--r-- | services/applications/fcgiwrap.cf | 15 | ||||
-rw-r--r-- | services/applications/nagios.cf | 13 |
2 files changed, 22 insertions, 6 deletions
diff --git a/services/applications/fcgiwrap.cf b/services/applications/fcgiwrap.cf index af2e8f8..7c491c0 100644 --- a/services/applications/fcgiwrap.cf +++ b/services/applications/fcgiwrap.cf @@ -1,8 +1,11 @@ -bundle common fcgiwrap +bundle agent fcgiwrap(user, group, mode) { - vars: - use_fcgiwrap:: - "packages" slist => { - "fcgiwrap", - }; + methods: + freebsd:: + "any" usebundle => install_package("fcgiwrap"); + "any" usebundle => add_rc_conf_line("fcgiwrap_enable=\"YES\""); + "any" usebundle => add_rc_conf_line("fcgiwrap_user=\"$(user)\""); + "any" usebundle => add_rc_conf_line("fcgiwrap_mode=\"$(mode)\""); + "any" usebundle => add_rc_conf_line("fcgiwrap_owner=\"$(user)\""); + "any" usebundle => add_rc_conf_line("fcgiwrap_group=\"$(group)\""); } diff --git a/services/applications/nagios.cf b/services/applications/nagios.cf new file mode 100644 index 0000000..156fdfb --- /dev/null +++ b/services/applications/nagios.cf @@ -0,0 +1,13 @@ +bundle agent nagios +{ + vars: + nagios:: + "packages" slist => { + "nagios4", + "nginx", + "php56", + }; + methods: + nagios:: + "any" usebundle => fcgiwrap("nagios", "www", "770"); +} |