2013-11-05 21:21:00 +01:00
|
|
|
class zulip_internal::postgres_slave {
|
|
|
|
include zulip_internal::base
|
|
|
|
include zulip_internal::postgres_appdb
|
2013-04-17 21:28:03 +02:00
|
|
|
|
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',
|
|
|
|
mode => 644,
|
2013-11-05 21:21:00 +01:00
|
|
|
source => 'puppet:///modules/zulip_internal/postgresql/40-postgresql.conf.slave',
|
2013-04-17 21:28:03 +02:00
|
|
|
}
|
|
|
|
|
2016-07-21 06:09:54 +02:00
|
|
|
file { "/etc/postgresql/${zulip::base::postgres_version}/main/postgresql.conf":
|
|
|
|
require => Package["postgresql-${zulip::base::postgres_version}"],
|
2013-04-17 21:28:03 +02:00
|
|
|
ensure => file,
|
|
|
|
owner => "postgres",
|
|
|
|
group => "postgres",
|
|
|
|
mode => 644,
|
2013-11-05 21:21:00 +01:00
|
|
|
source => "puppet:///modules/zulip_internal/postgresql/postgresql.conf.slave",
|
2013-04-17 21:28:03 +02:00
|
|
|
}
|
|
|
|
}
|