module-mysql/manifests/server.pp
2012-12-09 15:12:19 +01:00

33 lines
885 B
Puppet

# manage a mysql server
class mysql::server (
$manage_shorewall = false,
$manage_munin = false,
$manage_nagios = false,
$backup_cron = false,
$optimize_cron = false,
$backup_dir = '/var/backups/mysql',
$manage_backup_dir = true,
$nagios_notcp = false
) {
case $::operatingsystem {
gentoo: { include mysql::server::gentoo }
centos: { include mysql::server::centos }
debian: { include mysql::server::debian }
default: { include mysql::server::base }
}
if $manage_munin and $::mysql_exists == 'true' {
case $::operatingsystem {
debian: { include mysql::server::munin::debian }
default: { include mysql::server::munin::default }
}
}
if $manage_nagios and $::mysql_exists == 'true' {
include mysql::server::nagios
}
if $manage_shorewall {
include shorewall::rules::mysql
}
}