From a38e37546a3c86f0363b58a081fa76fec11f1e4c Mon Sep 17 00:00:00 2001 From: Ashley Penney Date: Wed, 12 Feb 2014 19:27:24 -0500 Subject: [PATCH] Fix this so it installs PE appropriately. --- spec/spec_helper_acceptance.rb | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index 31b3a34..f629981 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -1,10 +1,16 @@ require 'beaker-rspec' -hosts.each do |host| - # Install Puppet - install_package host, 'rubygems' - on host, 'gem install puppet --no-ri --no-rdoc' - on host, "mkdir -p #{host['distmoduledir']}" +unless ENV['RS_PROVISION'] == 'no' + hosts.each do |host| + # Install Puppet + if host.is_pe? + install_pe + else + install_package host, 'rubygems' + on host, 'gem install puppet --no-ri --no-rdoc' + on host, "mkdir -p #{host['distmoduledir']}" + end + end end RSpec.configure do |c|