remove hiera

This commit is contained in:
o 2012-06-13 20:22:45 -03:00
parent e4ca510b7c
commit cd68caf662

View file

@ -1,27 +1,27 @@
class mysql::server { class mysql::server (
$manage_shorewall = false,
$manage_munin = false,
$manage_nagios = false
) {
case $::operatingsystem { case $::operatingsystem {
gentoo: { include mysql::server::gentoo } gentoo: { include mysql::server::gentoo }
centos: { include mysql::server::centos } centos: { include mysql::server::centos }
debian: { include mysql::server::debian } debian: { include mysql::server::debian }
default: { include mysql::server::base } default: { include mysql::server::base }
} }
if hiera('use_munin',false) { if $mysql::manage_munin {
case $::operatingsystem { case $::operatingsystem {
debian: { include mysql::server::munin::debian } debian: { include mysql::server::munin::debian }
default: { include mysql::server::munin::default } default: { include mysql::server::munin::default }
} }
} }
if hiera('use_nagios',false) { if $mysql::manage_nagios {
case hiera('nagios_check_mysql',false) { include mysql::server::nagios
false: { info("We don't do nagioschecks for mysql on ${::fqdn}" ) } }
default: { include mysql::server::nagios }
}
}
if hiera('use_shorewall',false) { if $mysql::manage_shorewall {
include shorewall::rules::mysql include shorewall::rules::mysql
} }
} }