Puppet Class: profile::installserver::http_light
- Defined in:
- modules/profile/manifests/installserver/http_light.pp
Overview
SPDX-License-Identifier: Apache-2.0 Installs a web server for “light” install_servers without APT
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'modules/profile/manifests/installserver/http_light.pp', line 3
class profile::installserver::http_light {
file { '/etc/nginx/nginx.conf':
content => template('install_server/nginx.conf.erb'),
tag => 'nginx',
}
nginx::site { 'install.wikimedia.org':
content => template('install_server/install.wikimedia.org.conf.erb'),
}
profile::auto_restarts::service { 'nginx': }
# prevent a /srv root autoindex; empty for now.
file { '/srv/index.html':
ensure => present,
owner => 'root',
group => 'root',
mode => '0444',
content => '',
}
firewall::service { 'install_http_light':
proto => 'tcp',
port => 80,
src_sets => ['DOMAIN_NETWORKS'],
}
monitoring::service { 'http':
description => 'HTTP',
check_command => 'check_http',
notes_url => 'https://wikitech.wikimedia.org/wiki/Install_servers',
}
}
|