2014-10-02 13:03:08 +02:00
|
|
|
# Disable Icinga 2 Features/Modules
|
|
|
|
define icinga2::server::features::disable () {
|
2014-11-26 06:27:00 +01:00
|
|
|
exec { "icinga2 disable feature ${name}":
|
2014-10-02 13:03:08 +02:00
|
|
|
user => 'root',
|
|
|
|
path => '/usr/bin:/usr/sbin:/bin/:/sbin',
|
2014-12-02 04:48:55 +01:00
|
|
|
command => "/usr/sbin/icinga2 feature disable ${name}",
|
2014-10-02 13:03:08 +02:00
|
|
|
unless => "[ ! -f /etc/icinga2/features-enabled/${name}.conf ]",
|
|
|
|
require => Class['icinga2::server::install::packages'],
|
|
|
|
}
|
|
|
|
}
|