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

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

Overview

Parameters:

  • do_acme (Any) (defaults to: lookup('do_acme'))
  • 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'))


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

class profile::dumps::distribution::web (
    $do_acme = lookup('do_acme'),
    $datadir = lookup('profile::dumps::distribution::basedatadir'),
    $xmldumpsdir = lookup('profile::dumps::distribution::xmldumpspublicdir'),
    $miscdatasetsdir = lookup('profile::dumps::distribution::miscdumpsdir'),
){
    # includes module for bandwidth limits
    class { '::nginx':
        variant => 'extras',
    }

    class { '::sslcert::dhparam': }
    class {'::dumps::web::xmldumps':
        do_acme          => $do_acme,
        datadir          => $datadir,
        xmldumpsdir      => $xmldumpsdir,
        miscdatasetsdir  => $miscdatasetsdir,
        htmldumps_server => 'francium.eqiad.wmnet',
        xmldumps_server  => 'dumps.wikimedia.org',
        webuser          => 'dumpsgen',
        webgroup         => 'dumpsgen',
    }

    # copy web server logs to stat host
    if $do_acme {
      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',
    }
}