remove hiera
This commit is contained in:
parent
e4ca510b7c
commit
cd68caf662
1 changed files with 14 additions and 14 deletions
|
@ -1,5 +1,8 @@
|
|||
class mysql::server {
|
||||
|
||||
class mysql::server (
|
||||
$manage_shorewall = false,
|
||||
$manage_munin = false,
|
||||
$manage_nagios = false
|
||||
) {
|
||||
case $::operatingsystem {
|
||||
gentoo: { include mysql::server::gentoo }
|
||||
centos: { include mysql::server::centos }
|
||||
|
@ -7,21 +10,18 @@ class mysql::server {
|
|||
default: { include mysql::server::base }
|
||||
}
|
||||
|
||||
if hiera('use_munin',false) {
|
||||
if $mysql::manage_munin {
|
||||
case $::operatingsystem {
|
||||
debian: { include mysql::server::munin::debian }
|
||||
default: { include mysql::server::munin::default }
|
||||
}
|
||||
}
|
||||
|
||||
if hiera('use_nagios',false) {
|
||||
case hiera('nagios_check_mysql',false) {
|
||||
false: { info("We don't do nagioschecks for mysql on ${::fqdn}" ) }
|
||||
default: { include mysql::server::nagios }
|
||||
}
|
||||
if $mysql::manage_nagios {
|
||||
include mysql::server::nagios
|
||||
}
|
||||
|
||||
if hiera('use_shorewall',false) {
|
||||
if $mysql::manage_shorewall {
|
||||
include shorewall::rules::mysql
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue