1 node postgres-primary {
2 include container::contained
3 include container::no_ssh
7 install_options => ['--no-install-recommends'],
10 class { 'postgresql::globals':
13 class { 'postgresql::server':
14 listen_addresses => '*',
16 postgresql::server::db { 'gigi':
17 require => Package['postgresql'],
19 password => postgresql_password('gigi', $passwords[postgres][gigi]),
21 $gigi_ip = $ips[gigi];
22 postgresql::server::pg_hba_rule { 'allow gigi to access its database':
23 require => Package['postgresql'],
24 description => "Open up PostgreSQL for access from gigi to its database",
28 address => "$gigi_ip/32",