2013-10-29 23:53:04 +01:00
|
|
|
class zulip-internal::loadbalancer {
|
|
|
|
class { 'zulip-internal::base': }
|
2013-08-06 21:52:36 +02:00
|
|
|
class { 'zulip::nginx': }
|
2013-07-14 05:58:46 +02:00
|
|
|
|
2013-09-25 20:32:26 +02:00
|
|
|
file { "/etc/nginx/zulip-include/":
|
2013-07-14 05:58:46 +02:00
|
|
|
require => Package[nginx],
|
|
|
|
recurse => true,
|
|
|
|
owner => "root",
|
|
|
|
group => "root",
|
|
|
|
mode => 644,
|
2013-10-29 23:53:04 +01:00
|
|
|
source => "puppet:///modules/zulip-orig/nginx/zulip-include/",
|
2013-07-14 05:58:46 +02:00
|
|
|
notify => Service["nginx"],
|
|
|
|
}
|
|
|
|
|
|
|
|
file { "/etc/nginx/sites-available/loadbalancer":
|
|
|
|
require => Package[nginx],
|
|
|
|
ensure => file,
|
|
|
|
owner => "root",
|
|
|
|
group => "root",
|
|
|
|
mode => 644,
|
2013-10-29 23:53:04 +01:00
|
|
|
source => "puppet:///modules/zulip-internal/nginx/sites-available/loadbalancer",
|
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-10-29 23:53:04 +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':
|
|
|
|
ensure => 'link',
|
|
|
|
target => '/etc/nginx/sites-available/loadbalancer',
|
|
|
|
}
|
|
|
|
|
2013-09-04 21:57:31 +02:00
|
|
|
# Config for Camo
|
|
|
|
$camo_packages = [ "camo",]
|
|
|
|
package { $camo_packages: ensure => "installed" }
|
|
|
|
|
|
|
|
file { "/etc/default/camo":
|
|
|
|
require => Package[camo],
|
|
|
|
ensure => file,
|
|
|
|
owner => "root",
|
|
|
|
group => "root",
|
|
|
|
mode => 644,
|
2013-10-29 23:53:04 +01:00
|
|
|
source => "puppet:///modules/zulip-internal/camo_defaults",
|
2013-09-04 21:57:31 +02:00
|
|
|
}
|
2013-07-14 05:58:46 +02:00
|
|
|
}
|