2013-11-05 21:21:00 +01:00
|
|
|
class zulip_internal::loadbalancer {
|
|
|
|
include zulip_internal::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
|
|
|
|
|
|
|
file { "/etc/nginx/sites-available/loadbalancer":
|
2013-11-15 16:20:30 +01:00
|
|
|
require => Package["nginx-full"],
|
2013-07-14 05:58:46 +02:00
|
|
|
ensure => file,
|
|
|
|
owner => "root",
|
|
|
|
group => "root",
|
|
|
|
mode => 644,
|
2013-11-05 21:21:00 +01:00
|
|
|
source => "puppet:///modules/zulip_internal/nginx/sites-available/loadbalancer",
|
2013-12-12 23:58:05 +01:00
|
|
|
notify => Service["nginx"],
|
2013-07-14 05:58:46 +02:00
|
|
|
}
|
2013-07-29 20:32:12 +02:00
|
|
|
|
|
|
|
file { "/etc/motd":
|
|
|
|
ensure => file,
|
|
|
|
owner => "root",
|
|
|
|
group => "root",
|
|
|
|
mode => 644,
|
2013-11-05 21:21:00 +01:00
|
|
|
source => "puppet:///modules/zulip_internal/motd.lb0",
|
2013-07-29 20:32:12 +02:00
|
|
|
}
|
|
|
|
|
2013-07-14 05:58:46 +02:00
|
|
|
file { '/etc/nginx/sites-enabled/loadbalancer':
|
2013-12-12 23:58:05 +01:00
|
|
|
require => Package["nginx-full"],
|
2013-07-14 05:58:46 +02:00
|
|
|
ensure => 'link',
|
|
|
|
target => '/etc/nginx/sites-available/loadbalancer',
|
2013-12-12 23:58:05 +01:00
|
|
|
notify => Service["nginx"],
|
2013-07-14 05:58:46 +02:00
|
|
|
}
|
|
|
|
|
2013-12-17 19:45:54 +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-17 19:45:54 +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',
|
|
|
|
}
|
2013-07-14 05:58:46 +02:00
|
|
|
}
|