Fixed a bug where features were not actually being enabled/disabled because the order of the words in the subcommands was wrong.
refs#7916 : https://dev.icinga.org/issues/7916
This commit is contained in:
parent
00cfa7abf8
commit
bde5178ed1
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ 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}",
|
||||
command => "/usr/sbin/icinga2 feature disable ${name}",
|
||||
unless => "[ ! -f /etc/icinga2/features-enabled/${name}.conf ]",
|
||||
require => Class['icinga2::server::install::packages'],
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ define icinga2::server::features::enable () {
|
|||
exec { "icinga2 enable feature ${name}":
|
||||
user => 'root',
|
||||
path => '/usr/bin:/usr/sbin:/bin/:/sbin',
|
||||
command => "/usr/sbin/icinga2 enable feature ${name}",
|
||||
command => "/usr/sbin/icinga2 feature enable ${name}",
|
||||
unless => "[ ! -f /etc/icinga2/features-available/${name}.conf ] || [ -f /etc/icinga2/features-enabled/${name}.conf ]",
|
||||
require => Class['icinga2::server::install::packages'],
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue