Puppet Class: dumps::web::htmldumps

Defined in:
modules/dumps/manifests/web/htmldumps.pp

Overview

serve dumps of revision content from restbase in html format

Parameters:

  • htmldumps_server (Any) (defaults to: undef)


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
# File 'modules/dumps/manifests/web/htmldumps.pp', line 2

class dumps::web::htmldumps(
    $htmldumps_server = undef,
) {

    # nginx serving these via http only, with another host
    # proxying all requests. can't use the standard dumps nginx
    # manifest. all of the code below is for this setup, which
    # is temporary.

    file { '/srv/www':
        ensure => directory,
        mode   => '0755',
        owner  => 'root',
        group  => 'www-data',
    }

    file { '/srv/www/htmldumps':
        ensure => directory,
        mode   => '0775',
        owner  => 'root',
        group  => 'htmldumps-admin',
    }

    nginx::site { 'htmldumps':
        content => template('dumps/web/htmldumps/nginx.conf.erb'),
        notify  => Service['nginx'],
    }

    profile::auto_restarts::service { 'nginx': }

    include dumps::web::nginx_logrot
}