Skip to content

Commit 7473415

Browse files
hunnerMorgan Haskel
authored andcommitted
Add helper to install puppet/pe/puppet-agent
1 parent 588757d commit 7473415

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
@@ -28,6 +28,7 @@ group :system_tests do
2828
gem 'beaker-rspec', :require => false
2929
end
3030
gem 'serverspec', :require => false
31+
gem 'beaker-puppet_install_helper', :require => false
3132
end
3233

3334

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)