Puppet Class: toolserver_legacy

Defined in:
modules/toolserver_legacy/manifests/init.pp

Overview



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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'modules/toolserver_legacy/manifests/init.pp', line 8

class toolserver_legacy {

    class { '::httpd':
        modules => ['rewrite', 'ssl'],
    }

    $ssl_settings = ssl_ciphersuite('apache', 'compat')

    system::role { 'toolserver_legacy': description => 'Toolserver legacy server' }

    letsencrypt::cert::integrated { 'toolserver':
        subjects   => 'toolserver.org,www.toolserver.org,wiki.toolserver.org,stable.toolserver.org,status.toolserver.org',
        puppet_svc => 'apache2',
        system_svc => 'apache2',
    }
    # Monitored externally by icinga::monitor::certs due to this being run in labs...

    httpd::site { 'www.toolserver.org':
        content => template('toolserver_legacy/www.toolserver.org.erb'),
    }

    class { '::exim4':
        queuerunner => 'separate',
        config      => template('toolserver_legacy/exim4.conf.erb'),
    }

    file { '/var/www/html':
        ensure => directory,
        owner  => 'root',
        group  => 'root',
        mode   => '0555',
    }

    file { '/var/www/html/index.html':
        ensure  => present,
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        source  => 'puppet:///modules/toolserver_legacy/index.html',
        require => File['/var/www/html'],
    }

    file { '/var/www/html/notfound.html':
        ensure  => present,
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        source  => 'puppet:///modules/toolserver_legacy/notfound.html',
        require => File['/var/www/html'],
    }
}