diff options
author | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2009-12-01 13:33:36 -0500 |
---|---|---|
committer | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2009-12-01 13:33:36 -0500 |
commit | 1e7b51004868a762f577831e686d1b851e2b08c2 (patch) | |
tree | a9234a247aa0697635d04e1befbbe5db318ea7cb /manifests/init.pp | |
parent | c04458174e23b7b21f687cefdf11ac9a8aabf679 (diff) |
Add support for Debian; split up package defaults and create new nagios::default resource; add support for lighttpd and headless httpd configurations; move common commands definitions into nagios::commands
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 6eca55f..3d40ed6 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -15,8 +15,21 @@ # class nagios { + case $nagios_httpd { + 'absent': { } + 'lighttpd': { include lighttpd } + 'apache': { include apache } + default: { include apache } + } case $operatingsystem { - centos: { include nagios::centos } + 'centos': { + $nagios_cfg_dir = '/etc/nagios' + include nagios::centos + } + 'debian': { + $nagios_cfg_dir = '/etc/nagios3' + include nagios::debian + } default: { fail("No such operatingsystem: $operatingsystem yet defined") } } } |