Skip to content

Commit 01fe9dc

Browse files
committed
Merge pull request puppetlabs#484 from mhaskel/use_puppet_install_helper
Use puppet_install_helper
2 parents a2026bf + 224b644 commit 01fe9dc

File tree

2 files changed

+5
-22
lines changed

2 files changed

+5
-22
lines changed

Gemfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ group :system_tests do
3232
if beaker_rspec_version
3333
gem 'beaker-rspec', *location_for(beaker_rspec_version)
3434
else
35-
gem 'beaker-rspec', :require => false
35+
gem 'beaker-rspec', :require => false
3636
end
37-
gem 'serverspec', :require => false
37+
gem 'serverspec', :require => false
38+
gem 'beaker-puppet_install_helper', :require => false
3839
end
3940

4041
facterversion = ENV['GEM_FACTER_VERSION'] || ENV['FACTER_GEM_VERSION']

spec/spec_helper_acceptance.rb

+2-20
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,10 @@
11
#! /usr/bin/env ruby -S rspec
22
require 'beaker-rspec'
3+
require 'beaker/puppet_install_helper'
34

45
UNSUPPORTED_PLATFORMS = []
56

6-
unless ENV['RS_PROVISION'] == 'no' or ENV['BEAKER_provision'] == 'no'
7-
foss_opts = {
8-
:default_action => 'gem_install',
9-
:version => (ENV['PUPPET_VERSION'] || '3.8.1'),
10-
}
11-
12-
if default.is_pe?; then install_pe; else install_puppet( foss_opts ); end
13-
14-
hosts.each do |host|
15-
if host['platform'] !~ /windows/i
16-
if host.is_pe?
17-
on host, 'mkdir -p /etc/puppetlabs/facter/facts.d'
18-
else
19-
on host, "/bin/touch #{host['puppetpath']}/hiera.yaml"
20-
on host, "mkdir -p #{host['distmoduledir']}"
21-
on host, 'mkdir -p /etc/facter/facts.d'
22-
end
23-
end
24-
end
25-
end
7+
run_puppet_install_helper
268

279
RSpec.configure do |c|
2810
# Project root

0 commit comments

Comments
 (0)