Puppet Class: pacemaker::postgresql

Defined in:
manifests/postgresql.pp

Overview

Class: pacemaker::postgresql

Helper which includes the postgresql::server class, but with service management disabled. This is useful if PostgreSQL needs to be managed by Pacemaker, but you still want to benefit from the facilities provided in the PostgreSQL module.

Requires:

  • postgresql’s puppet module

Example usage:

include pacemaker::postgresql


13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'manifests/postgresql.pp', line 13

class pacemaker::postgresql {

  case $::osfamily {

    'RedHat': {
      case $::operatingsystemmajrelease {

        '4','5': { }

        default: {

          selinux::module { 'hapostgresql':
            content => file('pacemaker/selinux/hapostgresql.te'),
          }

        }
      }
    }

    default: { }

  }

}