File tree 2 files changed +5
-22
lines changed
2 files changed +5
-22
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,10 @@ group :system_tests do
32
32
if beaker_rspec_version
33
33
gem 'beaker-rspec' , *location_for ( beaker_rspec_version )
34
34
else
35
- gem 'beaker-rspec' , :require => false
35
+ gem 'beaker-rspec' , :require => false
36
36
end
37
- gem 'serverspec' , :require => false
37
+ gem 'serverspec' , :require => false
38
+ gem 'beaker-puppet_install_helper' , :require => false
38
39
end
39
40
40
41
facterversion = ENV [ 'GEM_FACTER_VERSION' ] || ENV [ 'FACTER_GEM_VERSION' ]
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env ruby -S rspec
2
2
require 'beaker-rspec'
3
+ require 'beaker/puppet_install_helper'
3
4
4
5
UNSUPPORTED_PLATFORMS = [ ]
5
6
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
26
8
27
9
RSpec . configure do |c |
28
10
# Project root
You can’t perform that action at this time.
0 commit comments