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

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

Overview

Class: profile::toolforge::node::web

Common settings for all toollabs::node::web::* classes

THIS SHOULD NOT BE INCLUDED DIRECTLY

Parameters:

Actions:

Requires:

Sample Usage:

filtertags: labs-project-tools

Parameters:

  • etcdir (Any) (defaults to: hiera('profile::toolforge::etcdir'))


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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'modules/profile/manifests/toolforge/grid/node/web.pp', line 16

class profile::toolforge::grid::node::web (
    $etcdir = hiera('profile::toolforge::etcdir'),
){
    include profile::toolforge::grid::node::compute
    include profile::toolforge::k8s::client

    # We have a tmp file problem to clean up
    package { ['tmpreaper', 'python-yaml'] :
        ensure => 'installed',
    }

    file { '/etc/tmpreaper.conf':
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        source  => 'puppet:///modules/profile/toolforge/web/tmpreaper.conf',
        require => Package['tmpreaper'],
    }

    class { '::sonofgridengine::exec_host':
        config  => 'profile/toolforge/grid/host-web.erb',
        require => File['/var/lib/gridengine'],
    }

    file { '/usr/local/lib/python2.7/dist-packages/portgrabber.py':
        ensure  => file,
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        source  => 'puppet:///modules/profile/toolforge/portgrabber.py',
        require => Package['python-yaml'],
    }

    file { '/usr/local/bin/portgrabber':
        ensure  => file,
        owner   => 'root',
        group   => 'root',
        mode    => '0555',
        source  => 'puppet:///modules/profile/toolforge/portgrabber_cli.py',
        require => File['/usr/local/lib/python2.7/dist-packages/portgrabber.py'],
    }

    file { '/usr/local/bin/portreleaser':
        ensure  => file,
        owner   => 'root',
        group   => 'root',
        mode    => '0555',
        source  => 'puppet:///modules/profile/toolforge/portreleaser.py',
        require => File['/usr/local/lib/python2.7/dist-packages/portgrabber.py'],
    }

    file { '/usr/local/bin/jobkill':
        ensure => file,
        owner  => 'root',
        group  => 'root',
        mode   => '0555',
        source => 'puppet:///modules/profile/toolforge/jobkill',
    }

}