Puppet Class: postgresql::pgbouncer::service

Inherits:
postgresql::pgbouncer
Defined in:
manifests/pgbouncer/service.pp

Overview



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'manifests/pgbouncer/service.pp', line 1

class postgresql::pgbouncer::service inherits postgresql::pgbouncer {

  $is_docker_container_var=getvar('::eyp_docker_iscontainer')
  $is_docker_container=str2bool($is_docker_container_var)

  if( $is_docker_container==false or
      $postgresql::pgbouncer::manage_docker_service)
  {
    if($postgresql::pgbouncer::manage_service)
    {
      service { $postgresql::params::pgbouncer_service_name:
        ensure     => $postgresql::pgbouncer::service_ensure,
        enable     => $postgresql::pgbouncer::service_enable,
        hasstatus  => true,
        hasrestart => true,
      }
    }
  }
}