2013-11-10 15:58:10 +01:00
|
|
|
class zulip_internal::app_frontend {
|
|
|
|
include zulip::app_frontend
|
2014-02-06 21:10:00 +01:00
|
|
|
include zulip::postfix_localmail
|
2013-11-10 15:58:10 +01:00
|
|
|
$app_packages = [# Needed for minify-js
|
|
|
|
"yui-compressor",
|
|
|
|
"nodejs",
|
|
|
|
# Needed for statsd reporting
|
|
|
|
"python-django-statsd-mozilla",
|
2013-11-10 16:01:45 +01:00
|
|
|
# Needed only for a disabled integration
|
|
|
|
"python-embedly",
|
2013-11-10 15:58:10 +01:00
|
|
|
]
|
|
|
|
package { $app_packages: ensure => "installed" }
|
|
|
|
|
2013-11-15 17:31:16 +01:00
|
|
|
file { "/etc/nginx/zulip-include/app.d/accept-loadbalancer.conf":
|
|
|
|
require => Package["nginx-full"],
|
|
|
|
owner => "root",
|
|
|
|
group => "root",
|
|
|
|
mode => 644,
|
|
|
|
source => "puppet:///modules/zulip_internal/nginx/zulip-include-app.d/accept-loadbalancer.conf",
|
|
|
|
notify => Service["nginx"],
|
|
|
|
}
|
|
|
|
|
2013-12-16 22:37:42 +01:00
|
|
|
file { '/etc/log2zulip.conf':
|
|
|
|
ensure => file,
|
|
|
|
owner => "zulip",
|
|
|
|
group => "zulip",
|
|
|
|
mode => 644,
|
|
|
|
source => 'puppet:///modules/zulip_internal/log2zulip.conf',
|
|
|
|
}
|
|
|
|
|
|
|
|
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,
|
|
|
|
source => 'puppet:///modules/zulip_internal/cron.d/log2zulip',
|
|
|
|
}
|
|
|
|
|
|
|
|
file { '/etc/log2zulip.zuliprc':
|
|
|
|
ensure => file,
|
|
|
|
owner => "zulip",
|
|
|
|
group => "zulip",
|
|
|
|
mode => 600,
|
|
|
|
source => 'puppet:///modules/zulip_internal/log2zulip.zuliprc',
|
|
|
|
}
|
2014-01-08 18:00:31 +01:00
|
|
|
file { "/etc/cron.d/check-apns-tokens":
|
|
|
|
ensure => file,
|
|
|
|
owner => "root",
|
|
|
|
group => "root",
|
|
|
|
mode => 644,
|
2014-01-08 18:08:37 +01:00
|
|
|
source => "puppet:///modules/zulip_internal/cron.d/check-apns-tokens",
|
2014-01-08 18:00:31 +01:00
|
|
|
}
|
2013-12-16 22:37:42 +01:00
|
|
|
|
2013-11-10 15:58:10 +01:00
|
|
|
}
|