mirror of https://github.com/zulip/zulip.git
64 lines
1.6 KiB
Puppet
64 lines
1.6 KiB
Puppet
class zulip_internal::loadbalancer {
|
|
include zulip_internal::base
|
|
include zulip::nginx
|
|
include zulip::camo
|
|
|
|
file { "/etc/nginx/sites-available/loadbalancer":
|
|
require => Package["nginx-full"],
|
|
ensure => file,
|
|
owner => "root",
|
|
group => "root",
|
|
mode => 644,
|
|
source => "puppet:///modules/zulip_internal/nginx/sites-available/loadbalancer",
|
|
notify => Service["nginx"],
|
|
}
|
|
|
|
file { "/etc/motd":
|
|
ensure => file,
|
|
owner => "root",
|
|
group => "root",
|
|
mode => 644,
|
|
source => "puppet:///modules/zulip_internal/motd.lb0",
|
|
}
|
|
|
|
file { '/etc/nginx/sites-enabled/loadbalancer':
|
|
require => Package["nginx-full"],
|
|
ensure => 'link',
|
|
target => '/etc/nginx/sites-available/loadbalancer',
|
|
notify => Service["nginx"],
|
|
}
|
|
|
|
file { "/etc/default/camo":
|
|
require => Package[camo],
|
|
ensure => file,
|
|
owner => "root",
|
|
group => "root",
|
|
mode => 644,
|
|
source => "puppet:///modules/zulip_internal/camo_defaults",
|
|
}
|
|
|
|
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,
|
|
owner => "root",
|
|
group => "root",
|
|
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',
|
|
}
|
|
}
|