2016-10-17 04:05:49 +02:00
|
|
|
class zulip_ops::loadbalancer {
|
|
|
|
include zulip_ops::base
|
2013-11-01 20:28:03 +01:00
|
|
|
include zulip::nginx
|
2013-11-08 21:19:51 +01:00
|
|
|
include zulip::camo
|
2013-07-14 05:58:46 +02:00
|
|
|
|
2018-08-13 21:29:40 +02:00
|
|
|
file { '/etc/nginx/sites-available/loadbalancer':
|
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',
|
2018-08-13 21:29:40 +02:00
|
|
|
source => 'puppet:///modules/zulip_ops/nginx/sites-available/loadbalancer',
|
|
|
|
notify => Service['nginx'],
|
2013-07-14 05:58:46 +02:00
|
|
|
}
|
2013-07-29 20:32:12 +02:00
|
|
|
|
2018-08-13 21:29:40 +02:00
|
|
|
file { '/etc/motd':
|
2013-07-29 20:32:12 +02:00
|
|
|
ensure => file,
|
2018-08-13 21:29:40 +02:00
|
|
|
owner => 'root',
|
|
|
|
group => 'root',
|
2018-08-13 21:20:34 +02:00
|
|
|
mode => '0644',
|
2018-08-13 21:29:40 +02:00
|
|
|
source => 'puppet:///modules/zulip_ops/motd.lb0',
|
2013-07-29 20:32:12 +02:00
|
|
|
}
|
|
|
|
|
2013-07-14 05:58:46 +02:00
|
|
|
file { '/etc/nginx/sites-enabled/loadbalancer':
|
2018-08-13 21:20:34 +02: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/loadbalancer',
|
2018-08-13 21:29:40 +02:00
|
|
|
notify => Service['nginx'],
|
2013-07-14 05:58:46 +02:00
|
|
|
}
|
|
|
|
|
2013-12-17 19:45:54 +01:00
|
|
|
file { '/etc/log2zulip.conf':
|
2018-08-13 21:20:34 +02:00
|
|
|
ensure => file,
|
2018-08-13 21:29:40 +02:00
|
|
|
owner => 'zulip',
|
|
|
|
group => 'zulip',
|
2018-08-13 21:20:34 +02:00
|
|
|
mode => '0644',
|
|
|
|
source => 'puppet:///modules/zulip_ops/log2zulip.conf',
|
2013-12-17 19:45:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
file { '/etc/cron.d/log2zulip':
|
2018-08-13 21:20:34 +02:00
|
|
|
ensure => file,
|
2018-08-13 21:29:40 +02:00
|
|
|
owner => 'root',
|
|
|
|
group => 'root',
|
2018-08-13 21:20:34 +02:00
|
|
|
mode => '0644',
|
|
|
|
source => 'puppet:///modules/zulip_ops/cron.d/log2zulip',
|
2013-12-17 19:45:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
file { '/etc/log2zulip.zuliprc':
|
2018-08-13 21:20:34 +02:00
|
|
|
ensure => file,
|
2018-08-13 21:29:40 +02:00
|
|
|
owner => 'zulip',
|
|
|
|
group => 'zulip',
|
2018-08-13 21:20:34 +02:00
|
|
|
mode => '0600',
|
|
|
|
source => 'puppet:///modules/zulip_ops/log2zulip.zuliprc',
|
2013-12-17 19:45:54 +01:00
|
|
|
}
|
2013-07-14 05:58:46 +02:00
|
|
|
}
|