Puppet Class: role::postgres::slave

Defined in:
modules/role/manifests/postgres/slave.pp

Overview



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'modules/role/manifests/postgres/slave.pp', line 1

class role::postgres::slave {
    include role::postgres::common
    include ::postgresql::postgis
    include ::passwords::postgres

    system::role { 'postgres::slave':
        ensure      => 'present',
        description => 'Postgres db slave',
    }

    class {'postgresql::slave':
        # FIXME - top-scope var without namespace, will break in puppet 2.8
        # lint:ignore:variable_scope
        master_server    => $postgres_master,
        # lint:endignore
        replication_pass => $passwords::postgres::replication_pass,
        includes         => 'tuning.conf',
        root_dir         => $role::postgres::common::root_dir,
    }
}