2016-10-17 04:05:49 +02:00
|
|
|
class zulip_ops::app_frontend {
|
2015-12-26 06:07:15 +01:00
|
|
|
include zulip::app_frontend_base
|
2015-12-26 06:13:47 +01:00
|
|
|
include zulip::memcached
|
|
|
|
include zulip::rabbit
|
2014-02-06 21:10:00 +01:00
|
|
|
include zulip::postfix_localmail
|
2016-07-20 00:35:03 +02:00
|
|
|
include zulip::static_asset_compiler
|
|
|
|
$app_packages = [# Needed for the ssh tunnel to the redis server
|
2014-02-05 01:05:27 +01:00
|
|
|
"autossh",
|
2013-11-10 15:58:10 +01:00
|
|
|
]
|
|
|
|
package { $app_packages: ensure => "installed" }
|
|
|
|
|
2013-12-16 22:37:42 +01:00
|
|
|
file { '/etc/log2zulip.conf':
|
|
|
|
ensure => file,
|
|
|
|
owner => "zulip",
|
|
|
|
group => "zulip",
|
|
|
|
mode => 644,
|
2016-10-17 04:05:49 +02:00
|
|
|
source => 'puppet:///modules/zulip_ops/log2zulip.conf',
|
2013-12-16 22:37:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
file { '/etc/cron.d/log2zulip':
|
|
|
|
ensure => file,
|
2013-12-17 20:13:27 +01:00
|
|
|
owner => "root",
|
|
|
|
group => "root",
|
2013-12-16 22:37:42 +01:00
|
|
|
mode => 644,
|
2016-10-17 04:05:49 +02:00
|
|
|
source => 'puppet:///modules/zulip_ops/cron.d/log2zulip',
|
2013-12-16 22:37:42 +01:00
|
|
|
}
|
|
|
|
|
2016-08-10 07:57:19 +02:00
|
|
|
file { '/etc/cron.d/check_send_receive_time':
|
|
|
|
ensure => file,
|
|
|
|
owner => "root",
|
|
|
|
group => "root",
|
|
|
|
mode => 644,
|
|
|
|
source => 'puppet:///modules/zulip_ops/cron.d/check_send_receive_time',
|
|
|
|
}
|
|
|
|
|
2013-12-16 22:37:42 +01:00
|
|
|
file { '/etc/log2zulip.zuliprc':
|
|
|
|
ensure => file,
|
|
|
|
owner => "zulip",
|
|
|
|
group => "zulip",
|
|
|
|
mode => 600,
|
2016-10-17 04:05:49 +02:00
|
|
|
source => 'puppet:///modules/zulip_ops/log2zulip.zuliprc',
|
2013-12-16 22:37:42 +01:00
|
|
|
}
|
2014-01-08 18:00:31 +01:00
|
|
|
file { "/etc/cron.d/check-apns-tokens":
|
|
|
|
ensure => file,
|
|
|
|
owner => "root",
|
|
|
|
group => "root",
|
|
|
|
mode => 644,
|
2016-10-17 04:05:49 +02:00
|
|
|
source => "puppet:///modules/zulip_ops/cron.d/check-apns-tokens",
|
2014-01-08 18:00:31 +01:00
|
|
|
}
|
2013-11-10 15:58:10 +01:00
|
|
|
}
|