zulip/puppet/zulip_ops/manifests/postgres_slave.pp

21 lines
640 B
ObjectPascal
Raw Normal View History

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":
ensure => file,
require => Package["postgresql-${zulip::base::postgres_version}"],
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',
}
}