2012-06-09 07:30:27 +02:00
|
|
|
class { 'postgresql::server':
|
|
|
|
config_hash => {
|
2012-06-09 18:23:11 +02:00
|
|
|
'ip_mask_deny_postgres_user' => '0.0.0.0/32',
|
2012-11-03 03:37:20 +01:00
|
|
|
'ip_mask_allow_all_users' => '0.0.0.0/0',
|
|
|
|
'listen_addresses' => '*',
|
|
|
|
'manage_redhat_firewall' => true,
|
|
|
|
'postgres_password' => 'postgres',
|
2012-06-09 07:30:27 +02:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
postgresql::database{ ['test1', 'test2', 'test3']:
|
|
|
|
# TODO: ensure not yet supported
|
|
|
|
#ensure => present,
|
|
|
|
charset => 'utf8',
|
|
|
|
require => Class['postgresql::server'],
|
|
|
|
}
|
|
|
|
postgresql::database{ 'test4':
|
|
|
|
# TODO: ensure not yet supported
|
|
|
|
#ensure => present,
|
|
|
|
charset => 'latin1',
|
|
|
|
require => Class['postgresql::server'],
|
|
|
|
}
|