32 lines
802 B
Puppet
32 lines
802 B
Puppet
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 {
|
|
case $::operatingsystem {
|
|
debian: { include mysql::server::munin::debian }
|
|
default: { include mysql::server::munin::default }
|
|
}
|
|
}
|
|
|
|
if $manage_nagios {
|
|
include mysql::server::nagios
|
|
}
|
|
|
|
if $manage_shorewall {
|
|
include shorewall::rules::mysql
|
|
}
|
|
}
|