Add helper to install puppet/pe/puppet-agent
This commit is contained in:
parent
2a9ff96e02
commit
53257df16f
2 changed files with 4 additions and 16 deletions
1
Gemfile
1
Gemfile
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -1,22 +1,10 @@
|
|||
require 'beaker-rspec'
|
||||
require 'beaker/puppet_install_helper'
|
||||
|
||||
run_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
|
||||
|
||||
hosts.each do |host|
|
||||
on hosts, "mkdir -p #{host['distmoduledir']}"
|
||||
end
|
||||
end
|
||||
|
||||
RSpec.configure do |c|
|
||||
# Project root
|
||||
proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
||||
|
@ -38,7 +26,6 @@ RSpec.configure do |c|
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue