parent
e124a4254d
commit
4008b86e33
|
@ -13,10 +13,9 @@
|
||||||
define icinga2::feature {
|
define icinga2::feature {
|
||||||
include icinga2
|
include icinga2
|
||||||
|
|
||||||
exec { "icinga2-feature-${name}":
|
file { "/etc/icinga2/features-enabled/${name}.conf":
|
||||||
path => '/bin:/usr/bin:/sbin:/usr/sbin',
|
ensure => link,
|
||||||
unless => "readlink /etc/icinga2/features-enabled/${name}.conf",
|
target => "/etc/icinga2/features-available/${name}.conf",
|
||||||
command => "icinga2-enable-feature ${name}",
|
notify => Service['icinga2'],
|
||||||
notify => Service['icinga2']
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue