zulip/puppet/kandra/manifests/profile/prod_app_frontend.pp

48 lines
1.4 KiB
ObjectPascal
Raw Normal View History

class kandra::profile::prod_app_frontend inherits kandra::profile::base {
include kandra::app_frontend
include zulip::hooks::zulip_notify
Kandra::User_Dotfiles['root'] {
keys => 'internal-limited-write-deploy-key',
}
Kandra::User_Dotfiles['zulip'] {
keys => 'internal-limited-write-deploy-key',
}
zulip::sysctl { 'conntrack':
comment => 'Increase conntrack kernel table size',
key => 'net.nf_conntrack_max',
value => zulipconf('application_server', 'conntrack_max', 262144),
}
file { '/etc/nginx/sites-available/zulip':
ensure => file,
require => Package['nginx-full'],
owner => 'root',
group => 'root',
mode => '0644',
source => 'puppet:///modules/kandra/nginx/sites-available/zulip',
notify => Service['nginx'],
}
file { '/etc/nginx/sites-enabled/zulip':
ensure => link,
require => Package['nginx-full'],
target => '/etc/nginx/sites-available/zulip',
notify => Service['nginx'],
}
file { '/usr/lib/nagios/plugins/zulip_zephyr_mirror':
require => Package[$zulip::common::nagios_plugins],
recurse => true,
purge => true,
owner => 'root',
group => 'root',
mode => '0755',
source => 'puppet:///modules/kandra/nagios_plugins/zulip_zephyr_mirror',
}
# Prod has our Apple Push Notifications Service private key at
# /etc/ssl/django-private/apns-dist.pem
}