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

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

Overview

SPDX-License-Identifier: Apache-2.0

Parameters:

  • postgres_primary (Stdlib::Host) (defaults to: lookup('profile::wmcs::services::postgres::primary', {default_value => undef}))
  • replication_pass (String) (defaults to: lookup('profile::wmcs::services::postgres::replication_pass'))
  • root_dir (Stdlib::Unixpath) (defaults to: lookup('profile::wmcs::services::postgres::root_dir', {default_value => '/srv/postgres'}))


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

class profile::wmcs::services::postgres::secondary (
    Stdlib::Host $postgres_primary = lookup('profile::wmcs::services::postgres::primary', {default_value => undef}),
    String $replication_pass = lookup('profile::wmcs::services::postgres::replication_pass'),
    Stdlib::Unixpath $root_dir = lookup('profile::wmcs::services::postgres::root_dir', {default_value => '/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,
    }
}