Defined Type: postgresql::slave_users
- Defined in:
- modules/postgresql/manifests/slave_users.pp
Overview
Create users for PostgreSQL Replication / Monitoring This inner define should probably be replaced by iterator once we activate future parser
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'modules/postgresql/manifests/slave_users.pp', line 3
define postgresql::slave_users(
$ip_address,
$replication_pass,
) {
::postgresql::user { "replication@${title}":
user => 'replication',
password => $replication_pass,
cidr => "${ip_address}/32",
attrs => 'REPLICATION',
database => 'replication',
}
::postgresql::user { "monitoring@${title}":
user => 'replication',
password => $replication_pass,
cidr => "${ip_address}/32",
database => 'template1',
}
}
|