Sfoglia il codice sorgente

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
Nick Chappell 9 anni fa
parent
commit
bde5178ed1

+ 1 - 1
manifests/server/features/disable.pp

@@ -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'],
   }

+ 1 - 1
manifests/server/features/enable.pp

@@ -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'],
   }