Puppet Class: mirrors::serve

Defined in:
modules/mirrors/manifests/serve.pp

Overview



1
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
# File 'modules/mirrors/manifests/serve.pp', line 1

class mirrors::serve {
    # HTTP
    include ::nginx

    # TODO: adopt role/profile pattern and drop the lint:ignore
    include ::sslcert::dhparam # lint:ignore:wmf_styleguide
    acme_chief::cert { 'mirrors':
        puppet_svc => 'nginx',
    }
    # TODO: Monitor SSL?

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

    nginx::site { 'mirrors':
        content => template('mirrors/mirrors.wikimedia.org.conf.erb'),
    }

    file { '/srv/mirrors/index.html':
        ensure => present,
        owner  => 'root',
        group  => 'root',
        mode   => '0444',
        source => 'puppet:///modules/mirrors/index.html',
    }

    # rsync
    include rsync::server

}