icinga2::feature: require File[icinga2cfgDir]

refs #6842
This commit is contained in:
Alexander Klimov 2014-09-15 12:12:21 +02:00
parent 6a2dfb4b17
commit d45f729ce5
1 changed files with 4 additions and 4 deletions

View File

@ -23,12 +23,12 @@ define icinga2::feature ($source = undef) {
}
}
parent_dirs { $path: }
file { $path:
parent_dirs { $path:
require => File['icinga2cfgDir'],
}
-> file { $path:
ensure => link,
target => "${cfgpath}/${target}.conf",
require => Parent_dirs[$path],
notify => Service['icinga2'],
}
}