Defined Type: sonofgridengine::join

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

Overview

Parameters:

  • sourcedir (Any)
  • list (Any) (defaults to: undef)


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'modules/sonofgridengine/manifests/join.pp', line 3

define sonofgridengine::join(
    $sourcedir,
    $list  = undef,
) {

    if $list {
        file { "${sourcedir}/${::fqdn}":
            ensure  => file,
            owner   => 'root',
            group   => 'root',
            mode    => '0444',
            content => inline_template("<% @list.each do |g| -%><%= g %>\n<% end -%>"),
        }
    } else {
        file { "${sourcedir}/${::fqdn}":
            ensure  => absent,
        }
    }
}