mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 20:41:46 +00:00
This code empirically doesn't work. It's not entirely clear why, even having done quite a bit of debugging; partly because the code is quite convoluted, and because it shows the symptoms of people making changes over time without really understanding how it was supposed to work. Moreover, this code targets an old version of the APNs provider API. Apple deprecated that in 2015, in favor of a shiny new one which uses HTTP/2 to meet the same needs for concurrency and scale that the old one had to do a bunch of ad-hoc protocol design for. So, rip this code out. We'll build a pathway to the new API from scratch; it's not that complicated.
55 lines
1.4 KiB
Puppet
55 lines
1.4 KiB
Puppet
class zulip_ops::app_frontend {
|
|
include zulip::app_frontend_base
|
|
include zulip::memcached
|
|
include zulip::rabbit
|
|
include zulip::postfix_localmail
|
|
include zulip::static_asset_compiler
|
|
$app_packages = [# Needed for the ssh tunnel to the redis server
|
|
"autossh",
|
|
]
|
|
package { $app_packages: ensure => "installed" }
|
|
|
|
file { "/etc/logrotate.d/zulip":
|
|
ensure => file,
|
|
owner => "root",
|
|
group => "root",
|
|
mode => 644,
|
|
source => "puppet:///modules/zulip/logrotate/zulip",
|
|
}
|
|
|
|
file { '/etc/log2zulip.conf':
|
|
ensure => file,
|
|
owner => "zulip",
|
|
group => "zulip",
|
|
mode => 644,
|
|
source => 'puppet:///modules/zulip_ops/log2zulip.conf',
|
|
}
|
|
|
|
file { '/etc/cron.d/log2zulip':
|
|
ensure => file,
|
|
owner => "root",
|
|
group => "root",
|
|
mode => 644,
|
|
source => 'puppet:///modules/zulip_ops/cron.d/log2zulip',
|
|
}
|
|
|
|
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',
|
|
}
|
|
|
|
file { '/etc/log2zulip.zuliprc':
|
|
ensure => file,
|
|
owner => "zulip",
|
|
group => "zulip",
|
|
mode => 600,
|
|
source => 'puppet:///modules/zulip_ops/log2zulip.zuliprc',
|
|
}
|
|
file { "/etc/cron.d/check-apns-tokens":
|
|
ensure => absent,
|
|
}
|
|
}
|