Skip to content

Commit 799d22b

Browse files
committed
Merge pull request voxpupuli#154 from cmurphy/rhel7
Add support for RHEL 7
2 parents bb6aff8 + a451045 commit 799d22b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

manifests/params.pp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@
5757
$dbpath = '/var/lib/mongodb'
5858
$logpath = '/var/log/mongodb/mongodb.log'
5959
$bind_ip = pick($::mongodb::globals::bind_ip, ['127.0.0.1'])
60-
$pidfilepath = '/var/run/mongodb/mongodb.pid'
60+
$pidfilepath = $::operatingsystemrelease ? {
61+
/^7/ => '/var/run/mongodb/mongod.pid',
62+
default => '/var/run/mongodb/mongodb.pid',
63+
}
6164
$fork = true
6265
$journal = true
6366
}

spec/spec_helper_acceptance.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
when 'RedHat'
3636
on hosts, 'puppet module install stahnma-epel'
3737
apply_manifest_on hosts, 'include epel'
38+
if fact('operatingsystemrelease') =~ /^7/
39+
shell('yum install -y iptables-services')
40+
end
3841
on hosts, 'service iptables stop'
3942
end
4043
end

0 commit comments

Comments
 (0)