2013-10-29 23:53:04 +01:00
|
|
|
class zulip-internal::postgres-appdb {
|
|
|
|
class { 'zulip-internal::postgres-common': }
|
2013-08-06 21:52:36 +02:00
|
|
|
class { 'zulip::supervisor': }
|
2013-07-26 23:36:54 +02:00
|
|
|
|
|
|
|
$appdb_packages = [ "python-psycopg2",]
|
|
|
|
package { $appdb_packages: ensure => "installed" }
|
|
|
|
|
|
|
|
file { "/usr/local/bin/process_fts_updates":
|
|
|
|
ensure => file,
|
|
|
|
owner => "root",
|
|
|
|
group => "root",
|
|
|
|
mode => 755,
|
2013-10-29 23:53:04 +01:00
|
|
|
source => "puppet:///modules/zulip-internal/postgresql/process_fts_updates",
|
2013-07-26 23:36:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
file { "/etc/supervisor/conf.d/zulip_db.conf":
|
|
|
|
require => Package[supervisor],
|
|
|
|
ensure => file,
|
|
|
|
owner => "root",
|
|
|
|
group => "root",
|
|
|
|
mode => 644,
|
2013-10-29 23:53:04 +01:00
|
|
|
source => "puppet:///modules/zulip-internal/supervisor/conf.d/zulip_db.conf",
|
2013-07-26 23:36:54 +02:00
|
|
|
notify => Service[supervisor],
|
|
|
|
}
|
2013-07-25 20:56:23 +02:00
|
|
|
|
|
|
|
file { "/etc/postgresql/9.1/main/pg_hba.conf":
|
|
|
|
require => Package["postgresql-9.1"],
|
|
|
|
ensure => file,
|
|
|
|
owner => "postgres",
|
|
|
|
group => "postgres",
|
|
|
|
mode => 640,
|
2013-10-29 23:53:04 +01:00
|
|
|
source => "puppet:///modules/zulip-internal/postgresql/pg_hba.conf",
|
2013-07-25 20:56:23 +02:00
|
|
|
}
|
|
|
|
|
2013-10-26 02:23:40 +02:00
|
|
|
file { "/usr/share/postgresql/9.1/tsearch_data/zulip_english.stop":
|
2013-07-25 20:56:23 +02:00
|
|
|
require => Package["postgresql-9.1"],
|
|
|
|
ensure => file,
|
|
|
|
owner => "root",
|
|
|
|
group => "root",
|
|
|
|
mode => 644,
|
2013-10-29 23:53:04 +01:00
|
|
|
source => "puppet:///modules/zulip-internal/postgresql/zulip_english.stop",
|
2013-07-25 20:56:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|