2016-10-17 04:05:49 +02:00
|
|
|
class zulip_ops::postgres_slave {
|
|
|
|
include zulip_ops::base
|
|
|
|
include zulip_ops::postgres_appdb
|
2013-04-17 21:28:03 +02:00
|
|
|
|
2016-07-31 05:38:58 +02:00
|
|
|
file { "/var/lib/postgresql/${zulip::base::postgres_version}/main/recovery.conf":
|
|
|
|
ensure => file,
|
2018-04-23 08:41:28 +02:00
|
|
|
require => Package["postgresql-${zulip::base::postgres_version}"],
|
2016-07-31 05:38:58 +02:00
|
|
|
owner => "postgres",
|
|
|
|
group => "postgres",
|
2018-04-23 08:30:21 +02:00
|
|
|
mode => '0644',
|
2016-07-31 05:38:58 +02:00
|
|
|
source => 'puppet:///modules/zulip_ops/postgresql/recovery.conf',
|
|
|
|
}
|
2013-04-17 22:21:03 +02:00
|
|
|
file { '/etc/sysctl.d/40-postgresql.conf':
|
2013-04-17 21:28:03 +02:00
|
|
|
ensure => file,
|
|
|
|
owner => 'root',
|
|
|
|
group => 'root',
|
2018-04-23 08:30:21 +02:00
|
|
|
mode => '0644',
|
2016-10-17 04:05:49 +02:00
|
|
|
source => 'puppet:///modules/zulip_ops/postgresql/40-postgresql.conf.slave',
|
2013-04-17 21:28:03 +02:00
|
|
|
}
|
|
|
|
}
|