Puppet Class: role::osm::replica

Defined in:
modules/role/manifests/osm/replica.pp

Overview

Parameters:

  • osm_master (Any) (defaults to: undef)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'modules/role/manifests/osm/replica.pp', line 1

class role::osm::replica (
    $osm_master = undef,
) {
    include role::osm::common
    include postgresql::postgis
    include passwords::osm
    include ::profile::base::firewall
    include ::profile::prometheus::postgres_exporter
    # Note: This is here to illustrate the fact that the replica is expected to
    # have the same dbs as the master.
    #postgresql::spatialdb { 'gis': }

    system::role { 'osm::replica':
        ensure      => 'present',
        description => 'openstreetmaps db replica',
    }

    class {'postgresql::slave':
        master_server    => $osm_master,
        replication_pass => $passwords::osm::replication_pass,
        includes         => 'tuning.conf',
        root_dir         => $role::osm::common::root_dir,
    }
}