class mysql::server ( $use_munin = hiera('use_munin',false), $use_nagios = hiera('use_nagios',false), $use_shorewall = hiera('use_shorewall',false) ) { 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 } }