mirror of https://github.com/zulip/zulip.git
29 lines
721 B
ObjectPascal
29 lines
721 B
ObjectPascal
|
class humbug::loadbalancer {
|
||
|
class { 'humbug::base': }
|
||
|
class { 'humbug::nginx': }
|
||
|
|
||
|
file { "/etc/nginx/humbug-include/":
|
||
|
require => Package[nginx],
|
||
|
recurse => true,
|
||
|
owner => "root",
|
||
|
group => "root",
|
||
|
mode => 644,
|
||
|
source => "puppet:///modules/humbug/nginx/humbug-include/",
|
||
|
notify => Service["nginx"],
|
||
|
}
|
||
|
|
||
|
file { "/etc/nginx/sites-available/loadbalancer":
|
||
|
require => Package[nginx],
|
||
|
ensure => file,
|
||
|
owner => "root",
|
||
|
group => "root",
|
||
|
mode => 644,
|
||
|
source => "puppet:///modules/humbug/nginx/sites-available/loadbalancer",
|
||
|
}
|
||
|
file { '/etc/nginx/sites-enabled/loadbalancer':
|
||
|
ensure => 'link',
|
||
|
target => '/etc/nginx/sites-available/loadbalancer',
|
||
|
}
|
||
|
|
||
|
}
|