# Puppet Class: confdroid_postgresql::main::install

Inherits:
  confdroid_postgresql::params

Defined in:
  manifests/main/install.pp

## Summary

Class manages logic for the confdroid_postgresql module.

## Overview

confdroid_postgresql::main::install.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
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    # File 'manifests/main/install.pp', line 6

    class confdroid_postgresql::main::install (

    ) inherits confdroid_postgresql::params {
      if $fqdn == $pl_server_fqdn {
        package { $reqpackages_server:
          ensure => $pkg_ensure,
        }
        package { $reqpackages_client:
          ensure => $pkg_ensure,
        }
        if $pl_manage_extensions == true {
          package { $reqpackages_extensions:
            ensure => $pkg_ensure,
          }
        }
        if $pl_use_pg_bouncer == true {
          package { $reqpackages_bouncer:
            ensure => $pkg_ensure,
          }
        }
      }

      if $fqdn != $pl_server_fqdn {
        package { $reqpackages_client:
          ensure => $pkg_ensure,
        }
      }
    }