icinga2::feature: replace `exec' with `file'

refs #6842
This commit is contained in:
Alexander Klimov 2014-09-10 14:59:44 +02:00
parent e124a4254d
commit 4008b86e33
1 changed files with 4 additions and 5 deletions

View File

@ -13,10 +13,9 @@
define icinga2::feature {
include icinga2
exec { "icinga2-feature-${name}":
path => '/bin:/usr/bin:/sbin:/usr/sbin',
unless => "readlink /etc/icinga2/features-enabled/${name}.conf",
command => "icinga2-enable-feature ${name}",
notify => Service['icinga2']
file { "/etc/icinga2/features-enabled/${name}.conf":
ensure => link,
target => "/etc/icinga2/features-available/${name}.conf",
notify => Service['icinga2'],
}
}