Defined Type: sensu::plugins_dir
- Defined in:
- manifests/plugins_dir.pp
Summary
Verifies if install_dir exists without duplicate declarationsOverview
This define verifies if install_dir exists without duplicate declarations
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'manifests/plugins_dir.pp', line 13
define sensu::plugins_dir (
Boolean $force,
Boolean $purge,
Boolean $recurse,
String $path = $name,
) {
if ! defined(File[$path]) {
file { $path:
ensure => directory,
mode => '0555',
owner => 'sensu',
group => 'sensu',
recurse => $recurse,
purge => $purge,
force => $force,
require => Package[$sensu::package::pkg_title],
}
}
}
|