# Puppet Class: postgresql_cd::main::files

Inherits:
  postgresql_cd::params

Defined in:
  manifests/main/files.pp

## Summary

Class manages logic for the postgresql_cd module.

## Overview

postgresql_cd::main::files.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
    22
    23
    24
    25
    26
    # File 'manifests/main/files.pp', line 6

    class postgresql_cd::main::files (

    ) inherits postgresql_cd::params {
      if $fqdn == $pl_server_fqdn {
        require postgresql_cd::server::initdb
        require postgresql_cd::main::dirs

        file { '/var/lib/pgsql/data/postgresql.conf':
          ensure   => file,
          owner    => 'postgres',
          group    => 'postgres',
          mode     => '0600',
          selrange => s0,
          selrole  => object_r,
          seltype  => postgresql_db_t,
          seluser  => unconfined_u,
          content  => template('postgresql_cd/postgresql.conf.erb'),
          notify   => Service[$pl_service],
        }
      }
    }