mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
As the previous commit, this is currently only used in tuning, but is a property of the whole postgres configuration; move it there, as just the directory, not the file. Use this directory consistently in the erb templates. Since we produce a `pg_hba.conf`, it makes sense that we point to the path that we know that we explicitly wrote to, for instance.
24 lines
771 B
Puppet
24 lines
771 B
Puppet
class zulip_ops::postgres_appdb {
|
|
include zulip_ops::postgres_common
|
|
include zulip::postgres_appdb_tuned
|
|
|
|
file { "${zulip::postgres_appdb_base::postgres_confdir}/pg_hba.conf":
|
|
ensure => file,
|
|
require => Package["postgresql-${zulip::base::postgres_version}"],
|
|
owner => 'postgres',
|
|
group => 'postgres',
|
|
mode => '0640',
|
|
source => 'puppet:///modules/zulip_ops/postgresql/pg_hba.conf',
|
|
}
|
|
|
|
file { "/usr/share/postgresql/${zulip::base::postgres_version}/zulip_nagios_setup.sql":
|
|
ensure => file,
|
|
require => Package["postgresql-${zulip::base::postgres_version}"],
|
|
owner => 'postgres',
|
|
group => 'postgres',
|
|
mode => '0640',
|
|
source => 'puppet:///modules/zulip_ops/postgresql/zulip_nagios_setup.sql',
|
|
}
|
|
|
|
}
|