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 2a9ff96 commit 53257df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ group :system_tests do
gem 'beaker-rspec', :require => false
end
gem 'serverspec', :require => false
gem 'beaker-puppet_install_helper', :require => false
end


Expand Down
19 changes: 3 additions & 16 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
require 'beaker-rspec'
require 'beaker/puppet_install_helper'

UNSUPPORTED_PLATFORMS = [ 'Windows', 'Solaris', 'AIX' ]

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 hosts, "mkdir -p #{host['distmoduledir']}"
end
end
UNSUPPORTED_PLATFORMS = [ 'Windows', 'Solaris', 'AIX' ]

RSpec.configure do |c|
# Project root
Expand All @@ -38,7 +26,6 @@
end
end

shell("/bin/touch #{default['puppetpath']}/hiera.yaml")
on host, puppet('module install puppetlabs-stdlib --version 3.2.0'), { :acceptable_exit_codes => [0,1] }
on host, puppet('module','install','stahnma/epel'), { :acceptable_exit_codes => [0,1] }
end
Expand Down

0 comments on commit 53257df

Please sign in to comment.