Puppet Class: profile::dumps::distribution::web

Defined in:
modules/profile/manifests/dumps/distribution/web.pp

Overview

Parameters:

  • is_primary_server (Any) (defaults to: lookup('profile::dumps::distribution::web::is_primary_server'))
  • dumps_active_web_server (Any) (defaults to: lookup('dumps_dist_active_web'))
  • datadir (Any) (defaults to: lookup('profile::dumps::distribution::basedatadir'))
  • xmldumpsdir (Any) (defaults to: lookup('profile::dumps::distribution::xmldumpspublicdir'))
  • miscdatasetsdir (Any) (defaults to: lookup('profile::dumps::distribution::miscdumpsdir'))
  • blocked_user_agent_regex (String) (defaults to: lookup('profile::dumps::distribution::blocked_user_agent_regex'))


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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'modules/profile/manifests/dumps/distribution/web.pp', line 1

class profile::dumps::distribution::web (
    $is_primary_server = lookup('profile::dumps::distribution::web::is_primary_server'),
    $dumps_active_web_server = lookup('dumps_dist_active_web'),
    $datadir = lookup('profile::dumps::distribution::basedatadir'),
    $xmldumpsdir = lookup('profile::dumps::distribution::xmldumpspublicdir'),
    $miscdatasetsdir = lookup('profile::dumps::distribution::miscdumpsdir'),
    String $blocked_user_agent_regex = lookup('profile::dumps::distribution::blocked_user_agent_regex'),
){
    class { '::sslcert::dhparam': }
    class {'::dumps::web::xmldumps':
        is_primary_server        => $is_primary_server,
        datadir                  => $datadir,
        xmldumpsdir              => $xmldumpsdir,
        miscdatasetsdir          => $miscdatasetsdir,
        htmldumps_server         => 'htmldumper1001.eqiad.wmnet',
        xmldumps_server          => 'dumps.wikimedia.org',
        webuser                  => 'dumpsgen',
        webgroup                 => 'dumpsgen',
        blocked_user_agent_regex => $blocked_user_agent_regex,
    }

    # copy web server logs to stat host
    if $is_primary_server {
        class {'::dumps::web::rsync::nginxlogs':
          dest => 'stat1007.eqiad.wmnet::dumps-webrequest/',
        }
    }

    ferm::service { 'xmldumps_http':
        proto => 'tcp',
        port  => '80',
    }

    ferm::service { 'xmldumps_https':
        proto => 'tcp',
        port  => '443',
    }

    class { '::dumps::web::enterprise':
        is_primary_server => $is_primary_server,
        dumps_web_server  => $dumps_active_web_server,
        user              => 'dumpsgen',
        group             => 'dumpsgen',
        miscdumpsdir      => $miscdatasetsdir,
    }
}