We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90f88ec commit 7f54eb1Copy full SHA for 7f54eb1
1 file changed
spec/spec_helper_acceptance.rb
@@ -2,11 +2,12 @@
2
require 'beaker-rspec/helpers/serverspec'
3
4
unless ENV['RS_PROVISION'] == 'no'
5
- if hosts.first.is_pe?
6
- install_pe
7
- else
8
- install_puppet
9
- 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
10
11
hosts.each do |host|
12
if host['platform'] =~ /debian/
13
on host, 'echo \'export PATH=/var/lib/gems/1.8/bin/:${PATH}\' >> ~/.bashrc'
0 commit comments