Puppet Class: profile::toolforge::grid::node::compute::general

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

Overview

Class: profile::toolforge::grid::node::compute::general

This configures the compute node as a general node

Parameters:

Actions:

Requires:

Sample Usage:

filtertags: toolforge

Parameters:

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


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
47
48
# File 'modules/profile/manifests/toolforge/grid/node/compute/general.pp', line 14

class profile::toolforge::grid::node::compute::general(
    $collectors = lookup('profile::toolforge::grid::base::collectors'),
) {

    include profile::toolforge::grid::node::compute

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

    $hostlist = '@general'

    sonofgridengine::queue { 'continuous':
        config => 'profile/toolforge/grid/queue-continuous.erb',
    }

    sonofgridengine::queue { 'task':
        config => 'profile/toolforge/grid/queue-task.erb',
    }

    sonofgridengine::join { "hostgroups-${::fqdn}":
        sourcedir => "${collectors}/hostgroups",
        list      => [ $hostlist ],
    }

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

}