We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bb6aff8 + a451045 commit 799d22bCopy full SHA for 799d22b
manifests/params.pp
@@ -57,7 +57,10 @@
57
$dbpath = '/var/lib/mongodb'
58
$logpath = '/var/log/mongodb/mongodb.log'
59
$bind_ip = pick($::mongodb::globals::bind_ip, ['127.0.0.1'])
60
- $pidfilepath = '/var/run/mongodb/mongodb.pid'
+ $pidfilepath = $::operatingsystemrelease ? {
61
+ /^7/ => '/var/run/mongodb/mongod.pid',
62
+ default => '/var/run/mongodb/mongodb.pid',
63
+ }
64
$fork = true
65
$journal = true
66
}
spec/spec_helper_acceptance.rb
@@ -35,6 +35,9 @@
35
when 'RedHat'
36
on hosts, 'puppet module install stahnma-epel'
37
apply_manifest_on hosts, 'include epel'
38
+ if fact('operatingsystemrelease') =~ /^7/
39
+ shell('yum install -y iptables-services')
40
+ end
41
on hosts, 'service iptables stop'
42
end
43
0 commit comments