summaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: 8c21344782bc1d84fd63eef75cc323126123fcc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# manifests/init.pp - manage ejabberd stuff
# Copyright (C) 2007 admin@immerda.ch
# GPLv3

# Manage an ejabberd server
class ejabberd(
  $domains          = $::fqdn,
  $config_content   = false,
  $nagios_domain    = $::fqdn,
  $nagios_user      = 'nagios',
  $nagios_pwd       = '',
  $manage_nagios    = false,
  $manage_munin     = false,
  $manage_shorewall = false
) {
  case $::operatingsystem {
    default: { include ejabberd::base }
  }
  if $manage_nagios {
    include ejabberd::nagios
  }

  if $manage_munin {
    include ejabberd::munin
  }

  if $manage_shorewall {
    include shorewall::rules::jabberserver
  }
}