2014-09-30 22:45:41 +02:00
|
|
|
# Enable Icinga 2 Features/Modules
|
2014-10-02 14:06:53 +02:00
|
|
|
define icinga2::server::features::enable () {
|
2014-11-26 06:27:00 +01:00
|
|
|
exec { "icinga2 enable feature ${name}":
|
2014-09-30 22:45:41 +02:00
|
|
|
user => 'root',
|
|
|
|
path => '/usr/bin:/usr/sbin:/bin/:/sbin',
|
2014-12-02 04:48:55 +01:00
|
|
|
command => "/usr/sbin/icinga2 feature enable ${name}",
|
2014-10-02 12:54:48 +02:00
|
|
|
unless => "[ ! -f /etc/icinga2/features-available/${name}.conf ] || [ -f /etc/icinga2/features-enabled/${name}.conf ]",
|
2014-09-30 22:45:41 +02:00
|
|
|
require => Class['icinga2::server::install::packages'],
|
|
|
|
}
|
|
|
|
}
|