summaryrefslogtreecommitdiff
path: root/manifests/server.pp
blob: e6e5fac12852bd64dfc83687211a3625fbe31ed5 (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 $use_munin {
      case $operatingsystem {
        debian: { include mysql::server::munin::debian }
        default: { include mysql::server::munin::default }
      }
    }

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

    if $use_shorewall {
      include shorewall::rules::mysql
    }
}