Skip to content

Commit

Permalink
Merge pull request #313 from mhaskel/spec_updates
Browse files Browse the repository at this point in the history
Update spec_helper for more consistency
  • Loading branch information
Ashley Penney committed Aug 28, 2014
2 parents e6eb863 + 2023692 commit 9e8127b
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@
UNSUPPORTED_PLATFORMS = []

unless ENV['RS_PROVISION'] == 'no' or ENV['BEAKER_provision'] == 'no'
if hosts.first.is_pe?
install_pe
on hosts, 'mkdir -p /etc/puppetlabs/facter/facts.d'
else
install_puppet
on hosts, 'mkdir -p /etc/facter/facts.d'
on hosts, '/bin/touch /etc/puppet/hiera.yaml'
end
# This will install the latest available package on el and deb based
# systems fail on windows and osx, and install via gem on other *nixes
foss_opts = { :default_action => 'gem_install' }

if default.is_pe?; then install_pe; else install_puppet( foss_opts ); end

hosts.each do |host|
on host, "mkdir -p #{host['distmoduledir']}"
on host, "/bin/touch #{default['puppetpath']}/hiera.yaml"
end
end

Expand Down

0 comments on commit 9e8127b

Please sign in to comment.