Puppet Class: install_server::web_server

Defined in:
modules/install_server/manifests/web_server.pp

Overview



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'modules/install_server/manifests/web_server.pp', line 16

class install_server::web_server {
    include ::nginx

    $ssl_settings = ssl_ciphersuite('nginx', 'mid', true)

    file { '/etc/nginx/nginx.conf':
        content => template('install_server/nginx.conf.erb'),
        tag     => 'nginx',
    }

    nginx::site { 'apt.wikimedia.org':
        content => template('install_server/apt.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 => '',
    }
}