3
0

add support for extensions

This commit is contained in:
Arne Teuke
2025-11-21 15:45:25 +01:00
parent ca80d70857
commit 4e3b493d17
9 changed files with 80 additions and 5 deletions

View File

@@ -0,0 +1,21 @@
## postgresql_cd::exporter::dirs.pp
# Module name: postgresql_cd
# Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class manages the postgresql exporter dirs
###############################################################################
class postgresql_cd::exporter::dirs (
) inherits postgresql_cd::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,
}
}
}

View File

@@ -0,0 +1,11 @@
## postgresql_cd::exporter::files.pp
# Module name: postgresql_cd
# Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class manages the postgresql exporter files
###############################################################################
class postgresql_cd::exporter::files (
) inherits postgresql_cd::params {
if ($fqdn == $pl_server_fqdn) and ($pl_use_exporter == true) {
require postgresql_cd::exporter::dirs
}

View File

@@ -0,0 +1,19 @@
## postgresql_cd::exporter::service.pp
# Module name: postgresql_cd
# Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class manages the postgresql exporter service
###############################################################################
class postgresql_cd::exporter::service (
) inherits postgresql_cd::params {
if ($fqdn == $pl_server_fqdn) and ($pl_use_exporter == true) {
require postgresql_cd::exporter::files
# service { $pl_exporter_service:
# ensure => running,
# hasstatus => true,
# hasrestart => true,
# enable => true,
# }
}
}