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

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

Overview

Class: profile::toolforge::grid::node::compute::dedicated

This configures the compute node as a general node dedicated to a tool

Parameters:

Actions:

Requires:

Sample Usage:

filtertags: toolforge This class still requires the manual creation of a user_list on the grid master once the user_list is created with a name that matches the “node_dedicated_tool” hiera value, then you can use the puppet + grid-configurator with this, most likely. It is not well tested yet and rarely used now. TODO: automate the user_list creation

Parameters:

  • dedicated_tool (Any) (defaults to: hiera('node_dedicated_tool', undef))


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

class profile::toolforge::grid::node::compute::dedicated(
    $dedicated_tool = hiera('node_dedicated_tool', undef),
) {

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

    if $dedicated_tool {
        sonofgridengine::join { "queues-${::fqdn}":
            sourcedir => "${profile::toolforge::base::collectors}/queues",
            list      => [ $dedicated_tool ],
        }

        # Having the collector in the instance means that, for the time
        # being, dedicated queues can have just the one one in them.

        sonofgridengine::collectors::queues { $dedicated_tool:
            store  => "${profile::toolforge::base::collectors}/queues",
            config => 'profile/toolforge/grid/queue-dedicated.erb',
        }
    }

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


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

}