Add actual postgresl module from puppetlabs
[mirror/dsa-puppet.git] / 3rdparty / modules / postgresql / examples / postgresql_db.pp
1 class { 'postgresql::server':
2   config_hash => {
3       'ip_mask_allow_all_users' => '0.0.0.0/0',
4       'listen_addresses'        => '*',
5       'manage_redhat_firewall'  => true,
6
7       #'ip_mask_deny_postgres_user' => '0.0.0.0/32',
8       #'postgres_password' => 'puppet',
9   },
10 }
11
12 postgresql::db{ 'test1':
13   user          => 'test1',
14   password      => 'test1',
15   grant         => 'all',
16 }
17
18 postgresql::db{ 'test2':
19   user          => 'test2',
20   password      => postgresql_password('test2', 'test2'),
21   grant         => 'all',
22 }
23
24 postgresql::db{ 'test3':
25   user          => 'test3',
26   # The password here is a copy/paste of the output of the 'postgresql_password'
27   #  function from this module, with a u/p of 'test3', 'test3'.
28   password      => 'md5e12234d4575a12bfd61d61294f32b086',
29   grant         => 'all',
30 }