# Puppet Class: postgresql_cd::server::service

Inherits:
  postgresql_cd::params

Defined in:
  manifests/server/service.pp

## Summary

Class manages the postgresql service

## Overview

postgresql_cd::server::service.pp Module name: postgresql_cd Author: Arne Teuke (arne_teuke@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 postgresql_cd::server::service (

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

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