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