Puppet Class: profile::toolforge::grid::node::web::generic

Defined in:
modules/profile/manifests/toolforge/grid/node/web/generic.pp

Overview

Class: profile::toolforge::grid::node::web::generic

Sets up a node for running generic webservices. Currently explicitly supports nodejs

Parameters:

  • collectors (Any) (defaults to: lookup('profile::toolforge::grid::base::collectors'))


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
# File 'modules/profile/manifests/toolforge/grid/node/web/generic.pp', line 6

class profile::toolforge::grid::node::web::generic(
    $collectors = lookup('profile::toolforge::grid::base::collectors'),
) {
    include profile::toolforge::grid::node::web
    # TODO: once exec nodes from the eqiad.wmflabs generation are gone, return to using $facts['fqdn']
    sonofgridengine::join { "queues-${facts['hostname']}.${::labsproject}.eqiad1.wikimedia.cloud":
        sourcedir => "${collectors}/queues",
        list      => [ 'webgrid-generic' ],
    }

    # uwsgi python support
    package {[
        'uwsgi',
        'uwsgi-plugin-python',
        'uwsgi-plugin-python3',
    ]:
        ensure => latest,
    }

    $tomcat_package = debian::codename() ? {
        'stretch' => 'tomcat8-user',
        'buster'  => 'tomcat9-user',
        default   => fail('unsupported debian version'),
    }

    package { [ $tomcat_package, 'xmlstarlet' ]:
        ensure => latest,
    }
}