Puppet Class: postgresql_cd::params

Summary

Class contains all parameters for the postgresql_cd module.

Overview

postgresql_cd::params.pp Module name: postgresql_cd Author: Arne Teuke (arne_teuke@confdroid.com)

Parameters:

  • pl_server_fqdn (String) (defaults to: undef)

    the fqdn of the postgresql server. Any other system will be configured as client

  • reqpackages_server (String) (defaults to: 'postgresql-server')

    the packages for the server

  • reqpackages_client (String) (defaults to: 'postgresql')

    the packages for the client

  • pkg_ensure (String) (defaults to: 'latest')

    which version of the packages to install, i.e. ‘latest’, ‘present’ ‘13.20’,

  • pl_fw_rule_order (String) (defaults to: '50')

    the prefix for the firewall rule

  • pl_fw_port (String) (defaults to: '5432')

    the port to use for service and firewall

  • pl_source_range (String) (defaults to: '0.0.0.0/0')

    the source range for allowed clients

  • pl_enable_fw (Boolean) (defaults to: true)

    whether to enable the firewall

  • pl_listen_address (String) (defaults to: '*')

    which address should the service listen on

  • pl_listen_port (String) (defaults to: '5432')

    which port should the service listen on

  • pl_max_conn (String) (defaults to: '100')

    maximum connections the service will accept



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'manifests/params.pp', line 19

class postgresql_cd::params (

  String $pl_server_fqdn    = undef,

  # installation
  String $reqpackages_server      = 'postgresql-server',
  String $reqpackages_client      = 'postgresql',
  String $pkg_ensure              = 'latest',

  # firewall
  String $pl_fw_rule_order        = '50',
  String $pl_fw_port              = '5432',
  String $pl_source_range         = '0.0.0.0/0',
  Boolean $pl_enable_fw           = true,

  # main config
  String $pl_listen_address       = '*',
  String $pl_listen_port          = '5432',
  String $pl_max_conn              = '100',

) {
  $fqdn                     = $facts['networking']['fqdn']
  $domain                   = $facts['networking']['domain']
  $os_name                  = $facts['os']['name']
  $os_release               = $facts['os']['release']['major']

  # Service
  $pl_service               = 'postgresql'

  # Directories
  $pl_data_dir              = '/var/lib/pgsql/data/'

  # includes must be last
  include postgresql_cd::main::config
}