Puppet Class: profile::installserver::http_light

Defined in:
modules/profile/manifests/installserver/http_light.pp

Overview

Installs a web server for “light” install_servers without APT



2
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
# File 'modules/profile/manifests/installserver/http_light.pp', line 2

class profile::installserver::http_light {

    class { '::nginx': }

    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'),
    }

    # prevent a /srv root autoindex; empty for now.
    file { '/srv/index.html':
        ensure  => present,
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        content => '',
    }

    ferm::service { 'install_http_light':
        proto  => 'tcp',
        port   => '80',
        srange => '$DOMAIN_NETWORKS',
    }

    monitoring::service { 'http':
        description   => 'HTTP',
        check_command => 'check_http',
        notes_url     => 'https://wikitech.wikimedia.org/wiki/Install_servers',
    }
}