parent
6a2dfb4b17
commit
d45f729ce5
|
@ -23,12 +23,12 @@ define icinga2::feature ($source = undef) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
parent_dirs { $path: }
|
parent_dirs { $path:
|
||||||
|
require => File['icinga2cfgDir'],
|
||||||
file { $path:
|
}
|
||||||
|
-> file { $path:
|
||||||
ensure => link,
|
ensure => link,
|
||||||
target => "${cfgpath}/${target}.conf",
|
target => "${cfgpath}/${target}.conf",
|
||||||
require => Parent_dirs[$path],
|
|
||||||
notify => Service['icinga2'],
|
notify => Service['icinga2'],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue