Skip to content

Commit

Permalink
Add helper to install puppet/pe/puppet-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
hunner committed Jun 11, 2015
1 parent 6bca1f0 commit ef3cb5d
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,9 @@
require 'beaker-rspec'
require 'beaker/puppet_installer_helper'

UNSUPPORTED_PLATFORMS = ['Darwin', 'Suse','windows','AIX','Solaris']

unless ENV['RS_PROVISION'] == 'no' or ENV['BEAKER_provision'] == 'no'
# This will install the latest available package on el and deb based
# systems fail on windows and osx, and install via gem on other *nixes
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
run_puppet_install_helper

hosts.each do |host|
on host, "mkdir -p #{host['distmoduledir']}"
# Windows doesn't have a hieraconf variable
on host, "touch #{host['hieraconf']}" if fact('osfamily') != 'windows'
end
end
UNSUPPORTED_PLATFORMS = ['Darwin', 'Suse','windows','AIX','Solaris']

RSpec.configure do |c|
# Project root
Expand Down

0 comments on commit ef3cb5d

Please sign in to comment.