1 |
class postgresql { |
2 |
package { postgresql9.0-server: |
3 |
ensure => installed |
4 |
} |
5 |
|
6 |
service { postgresql: |
7 |
restart => "/etc/rc.d/init.d/postgresql reload" |
8 |
} |
9 |
|
10 |
file { '/var/lib/pgsql/data/postgresql.conf': |
11 |
ensure => present, |
12 |
owner => postgres, |
13 |
group => postgres, |
14 |
mode => 644, |
15 |
require => Package["postgresql9.0-server"], |
16 |
content => "", |
17 |
notify => [Service['postgreql']] |
18 |
} |
19 |
|
20 |
file { '/var/lib/pgsql/data/pg_hba.conf': |
21 |
ensure => present, |
22 |
owner => postgres, |
23 |
group => postgres, |
24 |
mode => 644, |
25 |
require => Package["postgresql9.0-server"], |
26 |
content => "", |
27 |
notify => [Service['postgresql']] |
28 |
} |
29 |
} |