Skip to content

Commit 07110a6

Browse files
authored
Merge pull request #90 from amitkarsale/PA-6139
(PA-6139) Drop beaker-puppet_install_helper gem in zfs-core module
2 parents e86ba8f + 70dc488 commit 07110a6

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

.sync.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ Gemfile:
2525
- gem: async
2626
version: '~> 1'
2727
- gem: beaker-module_install_helper
28-
- gem: beaker-puppet_install_helper
2928
- gem: nokogiri
3029
":system_tests":
3130
- gem: voxpupuli-acceptance

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ group :development do
4141
gem "beaker-puppet", *location_for(ENV['BEAKER_PUPPET_VERSION'] || '~> 4.0') if Gem::Requirement.create('< 3.2.0').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
4242
gem "async", '~> 1', require: false
4343
gem "beaker-module_install_helper", require: false
44-
gem "beaker-puppet_install_helper", require: false
4544
gem "nokogiri", require: false
4645
end
4746
group :development, :release_prep do

spec/spec_helper_acceptance.rb

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
require 'beaker-rspec'
22
require 'beaker-puppet'
33
require 'beaker/module_install_helper'
4-
require 'beaker/puppet_install_helper'
54
require 'voxpupuli/acceptance/spec_helper_acceptance'
65

76
$LOAD_PATH << File.join(__dir__, 'acceptance/lib')
@@ -54,6 +53,30 @@ def solaris_agents
5453
-----END CERTIFICATE-----
5554
EOM
5655

56+
def run_puppet_install_helper
57+
return unless ENV['PUPPET_INSTALL_TYPE'] == 'agent'
58+
if ENV['BEAKER_PUPPET_COLLECTION'].match? %r{/-nightly$/}
59+
# Workaround for RE-10734
60+
options[:release_apt_repo_url] = 'http://nightlies.puppet.com/apt'
61+
options[:win_download_url] = 'http://nightlies.puppet.com/downloads/windows'
62+
options[:mac_download_url] = 'http://nightlies.puppet.com/downloads/mac'
63+
end
64+
65+
agent_sha = ENV['BEAKER_PUPPET_AGENT_SHA'] || ENV['PUPPET_AGENT_SHA']
66+
if agent_sha.nil? || agent_sha.empty?
67+
install_puppet_agent_on(hosts, options.merge(version: version))
68+
else
69+
# If we have a development sha, assume we're testing internally
70+
dev_builds_url = ENV['DEV_BUILDS_URL'] || 'http://builds.delivery.puppetlabs.net'
71+
install_from_build_data_url('puppet-agent', "#{dev_builds_url}/puppet-agent/#{agent_sha}/artifacts/#{agent_sha}.yaml", hosts)
72+
end
73+
74+
# XXX install_puppet_agent_on() will only add_aio_defaults_on when the
75+
# nodeset type == 'aio', but we don't want to depend on that.
76+
add_aio_defaults_on(hosts)
77+
add_puppet_paths_on(hosts)
78+
end
79+
5780
# Until solaris gets new image we need to add to the cert chain on solaris, call a beaker-puppet setup script to handle this
5881
hosts.each do |host|
5982
next unless host.platform.match? %r{solaris-11(\.2)?-(i386|sparc)}

0 commit comments

Comments
 (0)