3
0

add bouncer

This commit is contained in:
12ww1160
2025-12-05 13:06:10 +01:00
parent 9df1304812
commit c4fcffcb40
20 changed files with 119 additions and 16 deletions

View File

@@ -0,0 +1,26 @@
## confdroid_postgresql::bouncer::bouncer.pp
# Module name: confdroid_postgresql
# Author: Arne Teuke (12ww1160@confdroid.com)
# @summary Class manages the pgbouncer service
###############################################################################
class confdroid_postgresql::bouncer::bouncer (
) inherits confdroid_postgresql::params {
if ($fqdn == $pl_server_fqdn) and ($pl_use_pg_bouncer == true) {
# create the pgbouncer.ini file
concat { $pl_bouncer_ini_file:
ensure => present,
owner => 'postgres',
mode => '0600',
notify => Service[$pl_service],
}
# manage file header
concat::fragment { 'header':
target => $pl_bouncer_ini_file,
content => template($pl_bouncer_ini_erb),
order => '000',
}
}
}