add bouncer
This commit is contained in:
18
manifests/bouncer/service.pp
Normal file
18
manifests/bouncer/service.pp
Normal file
@@ -0,0 +1,18 @@
|
||||
## confdroid_postgresql::bouncer::service.pp
|
||||
# Module name: confdroid_postgresql
|
||||
# Author: Arne Teuke (12ww1160@confdroid.com)
|
||||
# @summary Class manages the pgbouncer service
|
||||
###############################################################################
|
||||
class confdroid_postgresql::bouncer::service (
|
||||
|
||||
) inherits confdroid_postgresql::params {
|
||||
if ($fqdn == $pl_server_fqdn) and ($pl_use_pg_bouncer == true) {
|
||||
require confdroid_postgresql::bouncer::bouncer
|
||||
service { $pl_bouncer_service:
|
||||
ensure => running,
|
||||
hasstatus => true,
|
||||
hasrestart => true,
|
||||
enable => true,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user