Puppet Class: pgpool::service

Defined in:
manifests/service.pp

Overview

Class: pgpool::service

This is the pgpool service class. It controls the service and provides an exec that can be used to reload pgpool.

Parameters

N/A

Variables

service_name_real

String. This is the service name that is configured by the main pgpool class.

service_ensure_real

String. This is the ensure value for the service that is set in the main pgpool class.

service_enable_real

Boolean. This is the service enable value for the service that is set in the main pgpool class.

Examples

N/A

Authors

Alex Schultz <aschultz@next-development.com>



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'manifests/service.pp', line 32

class pgpool::service {
  if $caller_module_name != $module_name {
    fail('pgpool::service should only be called via the pgpool class')
  }

  $pgpool_service_name = $::pgpool::service_name_real

  service { 'pgpool':
    ensure => $::pgpool::service_ensure_real,
    name   => $pgpool_service_name,
    enable => $::pgpool::service_enable_real
  }

  exec { 'pgpool_reload':
    path        => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin',
    command     => 'pgpool reload',
    require     => Service['pgpool'],
    refreshonly => true,
  }
}