Puppet Class: myst::config

Inherits:
myst
Defined in:
manifests/config.pp

Overview



1
2
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
# File 'manifests/config.pp', line 1

class myst::config inherits myst {
  if $environment_enable == true {
    case $::osfamily {
      'Linux', 'AIX', 'Debian', 'RedHat', 'SuSE', 'FreeBSD', 'Archlinux', 'Gentoo' : {
        file { "/etc/profile.d/myst-env.sh":
          ensure  => present,
          content => template("myst/myst-env.sh.erb"),
          owner   => "root",
          group   => "root",
          mode    => 644
        }
      }
      'Darwin' : {
        file_line { 'update-mac-path_1':
          line => "export MYST_HOME=${myst_home}",
          path => '/etc/profile'
        }

        file_line { 'update-mac-path_2':
          line    => "export PATH=\$PATH:${myst_home}",
          path    => '/etc/profile',
          require => File_line[update-mac-path_1]
        }
      }
    }
  }

}