Skip to content

Commit 852b097

Browse files
committed
Merge pull request voxpupuli#269 from Logicworks/bugfix/ensure-pidfile
ensure that the pidfile exists and is writable to the mongod service
2 parents 81b42ea + 3b25754 commit 852b097

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

manifests/server/config.pp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,15 @@
206206
group => $group,
207207
require => File[$config]
208208
}
209+
210+
if $pidfilepath {
211+
file { $pidfilepath:
212+
ensure => file,
213+
mode => '0644',
214+
owner => $user,
215+
group => $group,
216+
}
217+
}
209218
} else {
210219
file { $dbpath:
211220
ensure => absent,

0 commit comments

Comments
 (0)