adding feature disable define
Signed-off-by: Nick Chappell <nick@intronic.org>
This commit is contained in:
parent
6526467f42
commit
d20c8264c1
1 changed files with 10 additions and 0 deletions
10
manifests/server/features/disable.pp
Normal file
10
manifests/server/features/disable.pp
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Disable Icinga 2 Features/Modules
|
||||
define icinga2::server::features::disable () {
|
||||
exec { "icinga2-disable-feature ${name}":
|
||||
user => 'root',
|
||||
path => '/usr/bin:/usr/sbin:/bin/:/sbin',
|
||||
command => "/usr/sbin/icinga2-disable-feature ${name}",
|
||||
unless => "[ ! -f /etc/icinga2/features-enabled/${name}.conf ]",
|
||||
require => Class['icinga2::server::install::packages'],
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue