File tree Expand file tree Collapse file tree 1 file changed +24
-12
lines changed Expand file tree Collapse file tree 1 file changed +24
-12
lines changed Original file line number Diff line number Diff line change 19
19
# }
20
20
#
21
21
define puppet::masterenv ($modulepath , $manifest , $puppet_conf = $::puppet::params::puppet_conf){
22
+
23
+ case $::puppet::master::environments {
24
+ ' directory' : {
25
+ $path = " ${::puppet::master::environmentpath} /environment.conf"
26
+ $section = ' '
27
+ },
28
+ default: {
29
+ $path = $puppet_conf
30
+ $section = $name
31
+ }
32
+ }
33
+
22
34
Ini_setting {
23
- path => $puppet_conf ,
35
+ path => $path ,
36
+ section => $section ,
24
37
require => [File [$puppet_conf ], Class[' puppet::master' ]],
25
38
notify => Service[' httpd' ],
26
39
}
27
40
28
- ini_setting {"masterenvmodule${name}" :
29
- ensure => present ,
30
- section => $name ,
31
- setting => ' modulepath' ,
32
- value => $modulepath ,
33
- }
34
- ini_setting {"masterenvmanifest${name}" :
35
- ensure => present ,
36
- section => $name ,
37
- setting => ' manifest' ,
38
- value => $manifest ,
41
+ ini_setting {
42
+ " masterenvmodule${name} " :
43
+ ensure => present ,
44
+ setting => ' modulepath' ,
45
+ value => $modulepath ;
46
+
47
+ " masterenvmanifest${name} " :
48
+ ensure => present ,
49
+ setting => ' manifest' ,
50
+ value => $manifest ;
39
51
}
40
52
}
You can’t perform that action at this time.
0 commit comments