mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
27 lines
1.0 KiB
Puppet
27 lines
1.0 KiB
Puppet
class zulip::postgres_common {
|
|
$postgres_packages = [# The database itself
|
|
"postgresql-9.3",
|
|
# tools for database setup
|
|
"pgtune",
|
|
# tools for database monitoring
|
|
"ptop",
|
|
# Python modules used in our monitoring/worker threads
|
|
"python-gevent",
|
|
"python-tz",
|
|
"python-dateutil",
|
|
# our dictionary
|
|
"hunspell-en-us",
|
|
]
|
|
define safepackage ( $ensure = present ) {
|
|
if !defined(Package[$title]) {
|
|
package { $title: ensure => $ensure }
|
|
}
|
|
}
|
|
safepackage { $postgres_packages: ensure => "installed" }
|
|
|
|
exec { "disable_logrotate":
|
|
command => "/usr/bin/dpkg-divert --rename --divert /etc/logrotate.d/postgresql-common.disabled --add /etc/logrotate.d/postgresql-common",
|
|
creates => '/etc/logrotate.d/postgresql-common.disabled',
|
|
}
|
|
}
|