Puppet Class: sonofgridengine

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

Overview

Parameters:

  • gridmaster (Any)
  • etcdir (Any) (defaults to: '/var/lib/gridengine/etc')


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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'modules/sonofgridengine/manifests/init.pp', line 6

class sonofgridengine(
    $gridmaster,
    $etcdir = '/var/lib/gridengine/etc',
){

    file { '/var/local/preseed':
        ensure => directory,
        mode   => '0600',
    }

    file { '/var/local/preseed/gridengine.preseed':
        ensure  => 'file',
        mode    => '0600',
        backup  => false,
        content => template('sonofgridengine/gridengine.preseed.erb'),
        require => File['/var/local/preseed'],
    }

    package { 'gridengine-common':
        ensure       => latest,
        responsefile => '/var/local/preseed/gridengine.preseed',
        require      => File['/var/local/preseed/gridengine.preseed'],
    }

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

    file { "${etcdir}/hosts":
        ensure => directory,
        owner  => 'root',
        group  => 'root',
        mode   => '0755',
    }

    file { "${etcdir}/hosts/${::fqdn}":
        ensure => directory,
        owner  => 'root',
        group  => 'root',
        mode   => '0755',
    }

    file { '/usr/local/bin/gridengine-mailer':
        ensure => file,
        owner  => 'root',
        group  => 'root',
        mode   => '0555',
        source => 'puppet:///modules/sonofgridengine/gridengine-mailer',
    }
}