summaryrefslogtreecommitdiff
path: root/manifests/server.pp
blob: 81d293a1a9534efcd17da0665715cac76e003adc (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
class mysql::server {

  case $::operatingsystem {
    gentoo: { include mysql::server::gentoo }
    centos: { include mysql::server::centos }
    debian: { include mysql::server::debian }
    default: { include mysql::server::base }
  }

  if hiera('use_munin',false) {
    case $::operatingsystem {
      debian: { include mysql::server::munin::debian }
      default: { include mysql::server::munin::default }
    }
  }

  if hiera('use_nagios',false) {
    case hiera('nagios_check_mysql',false) {
      false: { info("We don't do nagioschecks for mysql on ${::fqdn}" ) }
      default: { include mysql::server::nagios }
    }
  }

  if hiera('use_shorewall',false) {
    include shorewall::rules::mysql
  }
}