Puppet Class: postgresql::pgbouncer

Overview

Parameters:

  • manage_package (Any) (defaults to: true)
  • package_ensure (Any) (defaults to: 'installed')
  • manage_service (Any) (defaults to: true)
  • manage_docker_service (Any) (defaults to: true)
  • service_ensure (Any) (defaults to: 'running')
  • service_enable (Any) (defaults to: true)
  • auth_type (Any) (defaults to: 'md5')
  • auth_user (Any) (defaults to: undef)
  • enable_auth_query (Any) (defaults to: false)
  • auth_query (Any) (defaults to: 'SELECT * FROM pgbouncer.get_auth($1)')
  • listen_addr (Any) (defaults to: '127.0.0.1')
  • listen_port (Any) (defaults to: '6432')
  • logfile (Any) (defaults to: '/var/log/pgbouncer/pgbouncer.log')
  • pool_mode (Any) (defaults to: 'session')
  • realize_dbs_tag (Any) (defaults to: undef)
  • realize_users_tag (Any) (defaults to: undef)
  • set_pgbouncer_password (Any) (defaults to: undef)
  • dbhost_pgbouncer (Any) (defaults to: '127.0.0.1')
  • src_ip_pgbouncer (Any) (defaults to: '127.0.0.1')
  • verbose (Any) (defaults to: '0')
  • server_fast_close (Any) (defaults to: false)
  • max_client_conn (Any) (defaults to: 200)
  • default_pool_size (Any) (defaults to: 100)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'manifests/pgbouncer.pp', line 1

class postgresql::pgbouncer (
                $manage_package         = true,
                $package_ensure         = 'installed',
                $manage_service         = true,
                $manage_docker_service  = true,
                $service_ensure         = 'running',
                $service_enable         = true,
                $auth_type              = 'md5',
                $auth_user              = undef,
                $enable_auth_query      = false,
                $auth_query             = 'SELECT * FROM pgbouncer.get_auth($1)',
                $listen_addr            = '127.0.0.1',
                $listen_port            = '6432',
                $logfile                = '/var/log/pgbouncer/pgbouncer.log',
                $pool_mode              = 'session',
                $realize_dbs_tag        = undef,
                $realize_users_tag      = undef,
                $set_pgbouncer_password = undef,
                $dbhost_pgbouncer       = '127.0.0.1',
                $src_ip_pgbouncer       = '127.0.0.1',
                $verbose                = '0',
                $server_fast_close      = false,
                $max_client_conn        = 200,
                $default_pool_size      = 100,
              ) inherits postgresql::params {

  class { '::postgresql::pgbouncer::install': } ->
  class { '::postgresql::pgbouncer::config': } ~>
  class { '::postgresql::pgbouncer::service': } ->
  Class['::postgresql::pgbouncer']

}