Files
confdroid_postgresql/manifests/exporter/dirs.pp

22 lines
672 B
ObjectPascal
Raw Normal View History

2025-12-04 19:49:59 +01:00
## confdroid_postgresql::exporter::dirs.pp
# Module name: confdroid_postgresql
2025-11-21 15:45:25 +01:00
# Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class manages the postgresql exporter dirs
###############################################################################
2025-12-04 19:49:59 +01:00
class confdroid_postgresql::exporter::dirs (
2025-11-21 15:45:25 +01:00
2025-12-04 19:49:59 +01:00
) inherits confdroid_postgresql::params {
2025-11-21 15:45:25 +01:00
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,
}
}
}