diff options
author | TP Honey <tphoney@users.noreply.github.com> | 2015-07-10 17:17:09 +0100 |
---|---|---|
committer | TP Honey <tphoney@users.noreply.github.com> | 2015-07-10 17:17:09 +0100 |
commit | 01fe9dc15c83e7855431a7fc1cff84204761ba0a (patch) | |
tree | 85fa19d88f0d173cb05af4dd0dc0436c2f1049f7 /spec/spec_helper_acceptance.rb | |
parent | a2026bf13bad920393e4792a40f08721ef1c0e67 (diff) | |
parent | 224b644003f99d83e53654af74f4002133545d55 (diff) | |
download | puppet-stdlib-01fe9dc15c83e7855431a7fc1cff84204761ba0a.tar.gz puppet-stdlib-01fe9dc15c83e7855431a7fc1cff84204761ba0a.tar.bz2 |
Merge pull request #484 from mhaskel/use_puppet_install_helper
Use puppet_install_helper
Diffstat (limited to 'spec/spec_helper_acceptance.rb')
-rwxr-xr-x | spec/spec_helper_acceptance.rb | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index 39d2d52..7b09a38 100755 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -1,28 +1,10 @@ #! /usr/bin/env ruby -S rspec require 'beaker-rspec' +require 'beaker/puppet_install_helper' UNSUPPORTED_PLATFORMS = [] -unless ENV['RS_PROVISION'] == 'no' or ENV['BEAKER_provision'] == 'no' - foss_opts = { - :default_action => 'gem_install', - :version => (ENV['PUPPET_VERSION'] || '3.8.1'), - } - - if default.is_pe?; then install_pe; else install_puppet( foss_opts ); end - - hosts.each do |host| - if host['platform'] !~ /windows/i - if host.is_pe? - on host, 'mkdir -p /etc/puppetlabs/facter/facts.d' - else - on host, "/bin/touch #{host['puppetpath']}/hiera.yaml" - on host, "mkdir -p #{host['distmoduledir']}" - on host, 'mkdir -p /etc/facter/facts.d' - end - end - end -end +run_puppet_install_helper RSpec.configure do |c| # Project root |