Puppet Class: confdroid_postgresql::server::service

Inherits:
confdroid_postgresql::params
Defined in:
manifests/server/service.pp

Summary

Class manages the postgresql service

Overview

confdroid_postgresql::server::service.pp Module name: confdroid_postgresql Author: 12ww1160 (12ww1160@confdroid.com)



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'manifests/server/service.pp', line 6

class confdroid_postgresql::server::service (

) inherits confdroid_postgresql::params {
  if $fqdn == $pl_server_fqdn {
    require confdroid_postgresql::firewall::iptables
    require confdroid_postgresql::server::initdb
    require confdroid_postgresql::server::pghba::pg_hba

    service { $pl_service:
      ensure     => running,
      hasstatus  => true,
      hasrestart => true,
      enable     => true,
    }
  }
}