Skip to content

Commit 9e8127b

Browse files
author
Ashley Penney
committed
Merge pull request #313 from mhaskel/spec_updates
Update spec_helper for more consistency
2 parents e6eb863 + 2023692 commit 9e8127b

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

spec/spec_helper_acceptance.rb

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@
44
UNSUPPORTED_PLATFORMS = []
55

66
unless ENV['RS_PROVISION'] == 'no' or ENV['BEAKER_provision'] == 'no'
7-
if hosts.first.is_pe?
8-
install_pe
9-
on hosts, 'mkdir -p /etc/puppetlabs/facter/facts.d'
10-
else
11-
install_puppet
12-
on hosts, 'mkdir -p /etc/facter/facts.d'
13-
on hosts, '/bin/touch /etc/puppet/hiera.yaml'
14-
end
7+
# This will install the latest available package on el and deb based
8+
# systems fail on windows and osx, and install via gem on other *nixes
9+
foss_opts = { :default_action => 'gem_install' }
10+
11+
if default.is_pe?; then install_pe; else install_puppet( foss_opts ); end
12+
1513
hosts.each do |host|
1614
on host, "mkdir -p #{host['distmoduledir']}"
15+
on host, "/bin/touch #{default['puppetpath']}/hiera.yaml"
1716
end
1817
end
1918

0 commit comments

Comments
 (0)