2013-11-05 19:53:13 +01:00
|
|
|
class zulip-internal::postgres_slave {
|
2013-11-01 20:28:03 +01:00
|
|
|
include zulip-internal::base
|
2013-11-05 19:53:13 +01:00
|
|
|
include zulip-internal::postgres_appdb
|
2013-04-17 21:28:03 +02:00
|
|
|
|
2013-04-17 22:21:03 +02:00
|
|
|
# We bundle a bunch of other sysctl parameters into 40-postgresql.conf
|
2013-04-17 21:28:03 +02:00
|
|
|
file { '/etc/sysctl.d/30-postgresql-shm.conf':
|
2013-04-17 22:21:03 +02:00
|
|
|
ensure => absent,
|
|
|
|
}
|
|
|
|
|
|
|
|
file { '/etc/sysctl.d/40-postgresql.conf':
|
2013-04-17 21:28:03 +02:00
|
|
|
ensure => file,
|
|
|
|
owner => 'root',
|
|
|
|
group => 'root',
|
|
|
|
mode => 644,
|
2013-10-29 23:53:04 +01:00
|
|
|
source => 'puppet:///modules/zulip-internal/postgresql/40-postgresql.conf.slave',
|
2013-04-17 21:28:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
file { "/etc/postgresql/9.1/main/postgresql.conf":
|
|
|
|
require => Package["postgresql-9.1"],
|
|
|
|
ensure => file,
|
|
|
|
owner => "postgres",
|
|
|
|
group => "postgres",
|
|
|
|
mode => 644,
|
2013-10-29 23:53:04 +01:00
|
|
|
source => "puppet:///modules/zulip-internal/postgresql/postgresql.conf.slave",
|
2013-04-17 21:28:03 +02:00
|
|
|
}
|
|
|
|
}
|