2024-02-06 21:40:19 +01:00
|
|
|
class kandra::profile::prod_app_frontend inherits kandra::profile::base {
|
|
|
|
include kandra::app_frontend
|
2023-04-03 20:37:33 +02:00
|
|
|
include zulip::hooks::zulip_notify
|
2013-05-29 00:22:56 +02:00
|
|
|
|
2024-02-06 21:40:19 +01:00
|
|
|
Kandra::User_Dotfiles['root'] {
|
2024-02-01 18:31:00 +01:00
|
|
|
keys => 'internal-limited-write-deploy-key',
|
|
|
|
}
|
2024-02-06 21:40:19 +01:00
|
|
|
Kandra::User_Dotfiles['zulip'] {
|
2024-02-01 18:31:00 +01:00
|
|
|
keys => 'internal-limited-write-deploy-key',
|
|
|
|
}
|
|
|
|
|
2024-01-08 22:01:03 +01:00
|
|
|
zulip::sysctl { 'conntrack':
|
2024-02-02 21:26:27 +01:00
|
|
|
comment => 'Increase conntrack kernel table size',
|
|
|
|
key => 'net.nf_conntrack_max',
|
|
|
|
value => zulipconf('application_server', 'conntrack_max', 262144),
|
2024-01-08 22:01:03 +01:00
|
|
|
}
|
|
|
|
|
2018-08-13 21:29:40 +02:00
|
|
|
file { '/etc/nginx/sites-available/zulip':
|
2018-08-13 21:20:34 +02:00
|
|
|
ensure => file,
|
2018-08-13 21:29:40 +02:00
|
|
|
require => Package['nginx-full'],
|
|
|
|
owner => 'root',
|
|
|
|
group => 'root',
|
2018-08-13 21:20:34 +02:00
|
|
|
mode => '0644',
|
2024-02-06 21:40:19 +01:00
|
|
|
source => 'puppet:///modules/kandra/nginx/sites-available/zulip',
|
2018-08-13 21:29:40 +02:00
|
|
|
notify => Service['nginx'],
|
2013-05-29 00:22:56 +02:00
|
|
|
}
|
2017-10-20 01:35:55 +02:00
|
|
|
|
2013-09-25 20:34:37 +02:00
|
|
|
file { '/etc/nginx/sites-enabled/zulip':
|
2022-03-16 01:23:53 +01:00
|
|
|
ensure => link,
|
2018-08-13 21:29:40 +02:00
|
|
|
require => Package['nginx-full'],
|
2018-08-13 21:20:34 +02:00
|
|
|
target => '/etc/nginx/sites-available/zulip',
|
2018-08-13 21:29:40 +02:00
|
|
|
notify => Service['nginx'],
|
2013-05-29 00:22:56 +02:00
|
|
|
}
|
|
|
|
|
2018-08-13 21:29:40 +02:00
|
|
|
file { '/usr/lib/nagios/plugins/zulip_zephyr_mirror':
|
2020-06-29 23:15:37 +02:00
|
|
|
require => Package[$zulip::common::nagios_plugins],
|
2016-08-15 06:56:07 +02:00
|
|
|
recurse => true,
|
2018-08-13 21:20:34 +02:00
|
|
|
purge => true,
|
2018-08-13 21:29:40 +02:00
|
|
|
owner => 'root',
|
|
|
|
group => 'root',
|
2018-08-13 21:20:34 +02:00
|
|
|
mode => '0755',
|
2024-02-06 21:40:19 +01:00
|
|
|
source => 'puppet:///modules/kandra/nagios_plugins/zulip_zephyr_mirror',
|
2016-08-15 06:56:07 +02:00
|
|
|
}
|
|
|
|
|
2013-10-23 22:32:32 +02:00
|
|
|
# Prod has our Apple Push Notifications Service private key at
|
|
|
|
# /etc/ssl/django-private/apns-dist.pem
|
2013-05-29 00:22:56 +02:00
|
|
|
}
|