Skip to content

Commit 35958b3

Browse files
committed
Merge pull request #339 from hunner/add_helper
Add helper to install puppet/pe/puppet-agent
2 parents 5997e65 + 9dd00aa commit 35958b3

2 files changed

Lines changed: 4 additions & 11 deletions

File tree

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ group :system_tests do
3333
gem 'beaker-rspec', :require => false
3434
end
3535
gem 'serverspec', :require => false
36+
gem 'beaker-puppet_install_helper', :require => false
3637
end
3738

3839
if facterversion = ENV['FACTER_GEM_VERSION']

spec/spec_helper_acceptance.rb

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
11
require 'beaker-rspec/spec_helper'
22
require 'beaker-rspec/helpers/serverspec'
33
require 'acceptance/specinfra_stubs'
4+
require 'beaker/puppet_install_helper'
45

5-
unless ENV['RS_PROVISION'] == 'no' or ENV['BEAKER_provision'] == 'no'
6-
# This will install the latest available package on el and deb based
7-
# systems fail on windows and osx, and install via gem on other *nixes
8-
foss_opts = {:default_action => 'gem_install'}
9-
10-
if default.is_pe?; then
11-
install_pe;
12-
else
13-
install_puppet(foss_opts);
14-
end
6+
run_puppet_install_helper
157

8+
unless ENV['RS_PROVISION'] == 'no' or ENV['BEAKER_provision'] == 'no'
169
hosts.each do |host|
17-
on hosts, "mkdir -p #{host['distmoduledir']}"
1810
if host['platform'] =~ /sles-1/i || host['platform'] =~ /solaris-1/i
1911
get_stdlib = <<-EOS
2012
package{'wget':}

0 commit comments

Comments
 (0)