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

filtertags: labs-project-tools

Parameters:

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


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

class profile::toolforge::grid::node::web::generic(
    $collectors = lookup('profile::toolforge::grid::base::collectors'),
) {
    include profile::toolforge::grid::node::web

    sonofgridengine::join { "queues-${::fqdn}":
        sourcedir => "${collectors}/queues",
        list      => [ 'webgrid-generic' ],
    }

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

    # tomcat support
    if $facts['lsbdistcodename'] == 'stretch' {
        package { [ 'tomcat8-user', 'xmlstarlet' ]:
            ensure => latest,
        }
    } else {
        package { [ 'tomcat7-user', 'xmlstarlet' ]:
            ensure => latest,
        }
    }
}