Skip to content

Commit

Permalink
update spec_helper_acceptance.rb to latest boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt committed Apr 22, 2015
1 parent 9e307e1 commit 5e0b5ba
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
require 'spec_helper_common'

unless ENV['RS_PROVISION'] == 'no' or ENV['BEAKER_provision'] == 'no'
if hosts.first.is_pe?
install_pe
# 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
install_puppet(foss_opts);
end

hosts.each do |host|
on hosts, "mkdir -p #{host['distmoduledir']}"
end
Expand All @@ -25,10 +30,10 @@
# Install module and dependencies
puppet_module_install(:source => proj_root, :module_name => 'selenium')
hosts.each do |host|
on host, puppet('module', 'install', 'puppetlabs-stdlib'), { :acceptable_exit_codes => [0,1] }
on host, puppet('module', 'install', 'maestrodev-wget'), { :acceptable_exit_codes => [0,1] }
on host, puppet('module', 'install', 'rodjek-logrotate'), { :acceptable_exit_codes => [0,1] }
on host, puppet('module', 'install', 'puppetlabs-java'), { :acceptable_exit_codes => [0,1] }
on host, puppet('module', 'install', 'puppetlabs-stdlib'), { :acceptable_exit_codes => [0, 1] }
on host, puppet('module', 'install', 'maestrodev-wget'), { :acceptable_exit_codes => [0, 1] }
on host, puppet('module', 'install', 'rodjek-logrotate'), { :acceptable_exit_codes => [0, 1] }
on host, puppet('module', 'install', 'puppetlabs-java'), { :acceptable_exit_codes => [0, 1] }
end
end
end

0 comments on commit 5e0b5ba

Please sign in to comment.