Skip to content

Commit 4419e32

Browse files
committed
Add helper to install puppet/pe/puppet-agent
1 parent 1fc8a3c commit 4419e32

1 file changed

Lines changed: 2 additions & 21 deletions

File tree

spec/spec_helper_acceptance.rb

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,8 @@
11
require 'beaker-rspec/spec_helper'
22
require 'beaker-rspec/helpers/serverspec'
3+
require 'beaker/puppet_installer_helper'
34

4-
unless ENV['RS_PROVISION'] == 'no'
5-
# This will install the latest available package on el and deb based
6-
# systems fail on windows and osx, and install via gem on other *nixes
7-
foss_opts = {
8-
:default_action => 'gem_install',
9-
:version => (ENV['PUPPET_VERSION'] || '3.8.1'),
10-
}
11-
12-
if default.is_pe?; then
13-
install_pe;
14-
else
15-
install_puppet(foss_opts);
16-
end
17-
18-
hosts.each do |host|
19-
if host['platform'] =~ /debian/
20-
on host, 'echo \'export PATH=/var/lib/gems/1.8/bin/:${PATH}\' >> ~/.bashrc'
21-
on host, "mkdir -p #{host['distmoduledir']}"
22-
end
23-
end
24-
end
5+
run_puppet_install_helper
256

267
RSpec.configure do |c|
278
# Project root

0 commit comments

Comments
 (0)