Puppet Class: profile::wmcs::services::postgres::secondary

Defined in:
modules/profile/manifests/wmcs/services/postgres/secondary.pp

Overview

Parameters:

  • postgres_primary (Any) (defaults to: hiera('profile::wmcs::services::postgres::primary', undef))
  • replication_pass (Any) (defaults to: hiera('profile::wmcs::services::postgres::replication_pass'))
  • root_dir (Any) (defaults to: hiera('profile::wmcs::services::postgres::root_dir', '/srv/postgres'))


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'modules/profile/manifests/wmcs/services/postgres/secondary.pp', line 1

class profile::wmcs::services::postgres::secondary (
    $postgres_primary = hiera('profile::wmcs::services::postgres::primary', undef),
    $replication_pass = hiera('profile::wmcs::services::postgres::replication_pass'),
    $root_dir = hiera('profile::wmcs::services::postgres::root_dir', '/srv/postgres'),
){
    include profile::wmcs::services::postgres::common
    class {'::postgresql::postgis': }

    class {'postgresql::slave':
        master_server    => $postgres_primary,
        replication_pass => $replication_pass,
        includes         => 'tuning.conf',
        root_dir         => $root_dir,
    }
}