Defined Type: sonofgridengine::resource

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

Overview

Parameters:

  • dir (Any)
  • rname (Any) (defaults to: $title)
  • config (Any) (defaults to: undef)
  • 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
# File 'modules/sonofgridengine/manifests/resource.pp', line 3

define sonofgridengine::resource(
    $dir,
    $rname   = $title,
    $config  = undef,
    $etcdir  = '/var/lib/gridengine/etc',
) {

    $conf    = "${etcdir}/${dir}/${rname}"

    if $config {
        file { $conf:
            ensure  => file,
            owner   => 'sgeadmin',
            group   => 'sgeadmin',
            mode    => '0664',
            content => template($config),
        }
    } else {
        file { $conf:
            ensure  => absent,
        }
    }

}