Skip to content

Commit 13a6f59

Browse files
committed
file path fixup and make sure the env dir exists
1 parent b74ba27 commit 13a6f59

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

manifests/masterenv.pp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@
2222

2323
case $::puppet::master::environments {
2424
'directory': {
25-
$path = "${::puppet::master::environmentpath}/environment.conf"
25+
$path = "${::puppet::master::environmentpath}/${name}/environment.conf"
2626
$section = ''
27+
file { "${::puppet::master::environmentpath}/${name}":
28+
ensure => directory,
29+
}
2730
},
2831
default: {
2932
$path = $puppet_conf

0 commit comments

Comments
 (0)