OP#470 add dir
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# confdroid_prometheus::main::dirs.pp
|
||||
# Module name: confdroid_prometheus
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class manages directories for the confdroid_prometheus module.
|
||||
##############################################################################
|
||||
class confdroid_prometheus::main::dirs (
|
||||
@@ -43,7 +43,20 @@ class confdroid_prometheus::main::dirs (
|
||||
}
|
||||
if $ps_enable_pruning == false {
|
||||
file { $ps_pruning_dir:
|
||||
ensure => absent,
|
||||
ensure => absent,
|
||||
}
|
||||
}
|
||||
# binary install directory
|
||||
if $install_from_binary == true {
|
||||
file { $ps_install_dir:
|
||||
ensure => directory,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0755',
|
||||
selrange => s0,
|
||||
selrole => object_r,
|
||||
seltype => usr_,
|
||||
seluser => unconfined_u,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user