Puppet Class: glassfish::path

Defined in:
manifests/path.pp

Overview

Class: glassfish::path

Add glassfish to profile

Parameters

None

Examples

Not applicable

Authors

Gavin Williams <fatmcgav@gmail.com>

Copyright 2014 Gavin Williams, unless otherwise noted.



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
# File 'manifests/path.pp', line 21

class glassfish::path {
  case $::osfamily {
    'RedHat' : {
      # Add a file to the profile.d directory
      file { '/etc/profile.d/glassfish.sh':
        ensure  => present,
        owner   => 'root',
        group   => 'root',
        mode    => '0644',
        content => template('glassfish/glassfish-profile-el.erb'),
        require => Class['glassfish::install']
      }
    }
    'Debian' : {
      # Add a file to the profile.d directory
      file { '/etc/profile.d/glassfish.sh':
        ensure  => present,
        owner   => 'root',
        group   => 'root',
        mode    => '0644',
        content => template('glassfish/glassfish-profile-deb.erb'),
        require => Class['glassfish::install']
      }
    }
    default  : {
      fail("OSFamily ${::osfamily} is not currently supported.")
    }
  }

  # Ensure glassfish::path runs before any resources that require asadmin
  Class['glassfish::path'] -> Create_domain <| |>
  Class['glassfish::path'] -> Create_cluster <| |>
  Class['glassfish::path'] -> Create_node <| |>

}