22 lines
670 B
Puppet
22 lines
670 B
Puppet
## confdroid_postgresql::exporter::dirs.pp
|
|
# Module name: confdroid_postgresql
|
|
# Author: Arne Teuke (12ww1160@confdroid.com)
|
|
# @summary Class manages the postgresql exporter dirs
|
|
###############################################################################
|
|
class confdroid_postgresql::exporter::dirs (
|
|
|
|
) inherits confdroid_postgresql::params {
|
|
if ($fqdn == $pl_server_fqdn) and ($pl_use_exporter == true) {
|
|
file { $pl_install_dir:
|
|
ensure => directory,
|
|
owner => 'postgres',
|
|
group => 'postgres',
|
|
mode => '0755',
|
|
selrange => s0,
|
|
selrole => object_r,
|
|
seltype => usr_t,
|
|
seluser => system_u,
|
|
}
|
|
}
|
|
}
|