mirror of https://github.com/zulip/zulip.git
21 lines
640 B
Puppet
21 lines
640 B
Puppet
class zulip_ops::postgres_slave {
|
|
include zulip_ops::base
|
|
include zulip_ops::postgres_appdb
|
|
|
|
file { "/var/lib/postgresql/${zulip::base::postgres_version}/main/recovery.conf":
|
|
require => Package["postgresql-${zulip::base::postgres_version}"],
|
|
ensure => file,
|
|
owner => "postgres",
|
|
group => "postgres",
|
|
mode => '0644',
|
|
source => 'puppet:///modules/zulip_ops/postgresql/recovery.conf',
|
|
}
|
|
file { '/etc/sysctl.d/40-postgresql.conf':
|
|
ensure => file,
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => '0644',
|
|
source => 'puppet:///modules/zulip_ops/postgresql/40-postgresql.conf.slave',
|
|
}
|
|
}
|