2009-10-03 15:19:11 +02:00
|
|
|
class mysql::server {
|
2009-12-10 20:52:50 +01:00
|
|
|
|
2009-10-03 15:19:11 +02:00
|
|
|
case $operatingsystem {
|
|
|
|
gentoo: { include mysql::server::gentoo }
|
|
|
|
centos: { include mysql::server::centos }
|
2009-12-10 18:22:25 +01:00
|
|
|
debian: { include mysql::server::debian }
|
2009-10-03 15:19:11 +02:00
|
|
|
default: { include mysql::server::base }
|
|
|
|
}
|
2009-12-10 20:52:50 +01:00
|
|
|
|
2009-10-03 15:19:11 +02:00
|
|
|
if $use_munin {
|
2009-12-11 17:34:03 +01:00
|
|
|
case $operatingsystem {
|
|
|
|
debian: { include mysql::server::munin::debian }
|
|
|
|
default: { include mysql::server::munin::default }
|
|
|
|
}
|
2009-10-03 15:19:11 +02:00
|
|
|
}
|
2009-12-11 21:25:20 +01:00
|
|
|
|
|
|
|
if $use_nagios {
|
2010-04-02 17:49:17 +02:00
|
|
|
case $nagios_check_mysql {
|
|
|
|
false: { info("We don't do nagioschecks for mysql on ${fqdn}" ) }
|
|
|
|
default: { include mysql::server::nagios }
|
|
|
|
}
|
2009-12-11 21:25:20 +01:00
|
|
|
}
|
|
|
|
|
2009-10-03 15:19:11 +02:00
|
|
|
if $use_shorewall {
|
2009-10-04 20:37:50 +02:00
|
|
|
include shorewall::rules::mysql
|
2009-10-03 15:19:11 +02:00
|
|
|
}
|
|
|
|
}
|