Defined Type: sonofgridengine::resourcedir

Defined in:
modules/sonofgridengine/manifests/resourcedir.pp

Overview

Parameters:

  • addcmd (Any)
  • modcmd (Any)
  • delcmd (Any)
  • dir (Any) (defaults to: $title)
  • etcdir (Any) (defaults to: '/var/lib/gridengine/etc')


3
4
5
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
35
36
37
38
39
# File 'modules/sonofgridengine/manifests/resourcedir.pp', line 3

define sonofgridengine::resourcedir(
    $addcmd,
    $modcmd,
    $delcmd,
    $dir = $title,
    $etcdir     = '/var/lib/gridengine/etc',
) {

    $confdir    = "${etcdir}/${dir}"
    $trackerdir = "${etcdir}/tracker/${dir}"

    file { $confdir:
        ensure  => directory,
        force   => false,
        owner   => 'sgeadmin',
        group   => 'sgeadmin',
        mode    => '0775',
        recurse => false,
        purge   => false,
    }

    file { $trackerdir:
        ensure  => directory,
        force   => true,
        owner   => 'sgeadmin',
        group   => 'sgeadmin',
        mode    => '0775',
        recurse => false,
        purge   => false,
    }

    # Disable tracker execution, pending removal
    # exec { "track-${dir}":
    #     command => "${etcdir}/bin/tracker '${confdir}' '${trackerdir}' '${addcmd}' '${modcmd}' '${delcmd}'",
    #     require => File["${etcdir}/bin/tracker", $confdir, $trackerdir],
    # }
}