beaker-pe 2.11.0 → 2.11.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/dependabot.yml +8 -0
- data/beaker-pe.gemspec +1 -1
- data/lib/beaker-pe/install/pe_utils.rb +9 -10
- data/lib/beaker-pe/version.rb +1 -1
- data/spec/beaker-pe/install/pe_utils_spec.rb +3 -26
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6b980f0786d5843b28521338cf71f98d33798f2f59c8e5068185a419dc0d1e27
|
4
|
+
data.tar.gz: c754f34e0e63b69f51ea3014091100cd68ef75112bab6952b4ea90ab02123d7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f02d963ffad85af682eb35300027e72b3da36dd9b306a2eb17079e9dc34941514cefe4c2776176d430b7a3f89492bcb8a847d7077990415b799b87c555b6b693
|
7
|
+
data.tar.gz: 69ac13034a03600fd41932640c74e73d6d75e804b1376821d2e22e04d5b0ab4d6a0fa5f3fce272b39166b07d5b9ba63819c675d0f522bcabc5a49a98824d14ce
|
data/beaker-pe.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.add_development_dependency 'rspec', '~> 3.0'
|
22
22
|
s.add_development_dependency 'rspec-its'
|
23
23
|
s.add_development_dependency 'fakefs', '~> 0.6', '< 0.14.0'
|
24
|
-
s.add_development_dependency 'rake', '~>
|
24
|
+
s.add_development_dependency 'rake', '~> 12.3.3'
|
25
25
|
s.add_development_dependency 'simplecov'
|
26
26
|
s.add_development_dependency 'pry', '~> 0.10'
|
27
27
|
|
@@ -292,7 +292,7 @@ module Beaker
|
|
292
292
|
fetch_and_push_pe(host, path, filename, extension)
|
293
293
|
else
|
294
294
|
curlopts = opts[:use_proxy] ? " --proxy #{opts[:proxy_hostname]}:3128" : ""
|
295
|
-
on host, "cd #{host['working_dir']}; curl -O #{path}/#{filename}#{extension}#{curlopts}"
|
295
|
+
on host, "cd #{host['working_dir']}; curl -L -O #{path}/#{filename}#{extension}#{curlopts}"
|
296
296
|
end
|
297
297
|
end
|
298
298
|
end
|
@@ -328,7 +328,7 @@ module Beaker
|
|
328
328
|
on host, "cd #{host['working_dir']}; chmod 644 #{filename}#{extension}"
|
329
329
|
elsif host.is_cygwin?
|
330
330
|
curlopts = opts[:use_proxy] ? " --proxy #{opts[:proxy_hostname]}:3128" : ""
|
331
|
-
on host, "cd #{host['working_dir']}; curl -O #{path}/#{filename}#{extension}#{curlopts}"
|
331
|
+
on host, "cd #{host['working_dir']}; curl -L -O #{path}/#{filename}#{extension}#{curlopts}"
|
332
332
|
else
|
333
333
|
on host, powershell("$webclient = New-Object System.Net.WebClient; $webclient.DownloadFile('#{path}/#{filename}#{extension}','#{host['working_dir']}\\#{filename}#{extension}')")
|
334
334
|
end
|
@@ -381,7 +381,7 @@ module Beaker
|
|
381
381
|
command_file_push = 'cat '
|
382
382
|
else
|
383
383
|
curlopts = opts[:use_proxy] ? "--proxy #{opts[:proxy_hostname]}:3128 " : ""
|
384
|
-
command_file_push = "curl #{curlopts}#{path}/"
|
384
|
+
command_file_push = "curl -L #{curlopts}#{path}/"
|
385
385
|
end
|
386
386
|
on host, "cd #{host['working_dir']}; #{command_file_push}#{filename}#{extension} | #{unpack}"
|
387
387
|
|
@@ -661,7 +661,7 @@ module Beaker
|
|
661
661
|
register_feature_flags!(opts)
|
662
662
|
generate_installer_conf_file_for(master, all_hosts, opts)
|
663
663
|
step "Install PE on master" do
|
664
|
-
on master, installer_cmd(master, opts)
|
664
|
+
on master, installer_cmd(master, opts) if master['template'] !~ /-preload/
|
665
665
|
end
|
666
666
|
|
667
667
|
step "Stop agent on master" do
|
@@ -690,7 +690,7 @@ module Beaker
|
|
690
690
|
step "Configuring #{host} to use proxy" do
|
691
691
|
@osmirror_host = "osmirror.delivery.puppetlabs.net"
|
692
692
|
@osmirror_host_ip = IPSocket.getaddress(@osmirror_host)
|
693
|
-
@delivery_host = "
|
693
|
+
@delivery_host = "artifactory.delivery.puppetlabs.net"
|
694
694
|
@delivery_host_ip = IPSocket.getaddress(@delivery_host)
|
695
695
|
@test_forge_host = "api-forge-aio02-petest.puppet.com"
|
696
696
|
@test_forge_host_ip = IPSocket.getaddress(@test_forge_host)
|
@@ -738,9 +738,11 @@ module Beaker
|
|
738
738
|
on host, "curl --proxy #{@proxy_hostname}:3128 http://#{@osmirror_host}", :acceptable_exit_codes => [0]
|
739
739
|
# Verify we can't reach it without the proxy
|
740
740
|
on host, "curl -k http://#{@osmirror_host} -m 5", :acceptable_exit_codes => [28]
|
741
|
+
# For ubuntu we configure Apt to use a proxy globally
|
741
742
|
if host.host_hash[:platform].include?("ubuntu")
|
742
743
|
on host, "echo 'Acquire::http::Proxy \"http://'#{@proxy_hostname}':3128/\";' >> /etc/apt/apt.conf"
|
743
744
|
on host, "echo 'Acquire::https::Proxy \"http://'#{@proxy_hostname}':3128/\";' >> /etc/apt/apt.conf"
|
745
|
+
# For SLES we configure ENV variables to use a proxy, then set no_proxy on master and possible CM
|
744
746
|
elsif host.host_hash[:platform].include?("sles")
|
745
747
|
on host, 'rm /etc/sysconfig/proxy'
|
746
748
|
on host, 'echo "PROXY_ENABLED=\"yes\"" >> /etc/sysconfig/proxy'
|
@@ -752,12 +754,9 @@ module Beaker
|
|
752
754
|
no_proxy_list.concat(",#{compile_master}")
|
753
755
|
end
|
754
756
|
on host, "echo \"NO_PROXY='#{no_proxy_list}'\" >> /etc/sysconfig/proxy"
|
757
|
+
# For Redhat/Centos we configre Yum globally to use a proxy
|
755
758
|
else
|
756
|
-
|
757
|
-
repo_list = on(host, "ls /etc/yum.repos.d/").output.strip.split("\n")
|
758
|
-
repo_list.each do |repo|
|
759
|
-
on host, "echo \"proxy=http://#{@proxy_hostname}:3128\" >> /etc/yum.repos.d/#{repo}"
|
760
|
-
end
|
759
|
+
on host, "echo 'proxy=http://#{@proxy_hostname}:3128' >> /etc/yum.conf"
|
761
760
|
end
|
762
761
|
end
|
763
762
|
end
|
data/lib/beaker-pe/version.rb
CHANGED
@@ -646,29 +646,6 @@ describe ClassMixedWithDSLInstallUtils do
|
|
646
646
|
def slice_installer_options(host)
|
647
647
|
host.host_hash.select { |k,v| [ :pe_installer_conf_file, :pe_installer_conf_setting].include?(k) }
|
648
648
|
end
|
649
|
-
|
650
|
-
context 'when version < 2016.2.0' do
|
651
|
-
let(:pe_ver) { '3.8.5' }
|
652
|
-
|
653
|
-
it 'sets legacy settings' do
|
654
|
-
expect(slice_installer_options(host)).to eq(legacy_settings)
|
655
|
-
end
|
656
|
-
end
|
657
|
-
|
658
|
-
context 'when version >= 2016.2.0' do
|
659
|
-
let (:pe_ver) { '2016.2.0' }
|
660
|
-
|
661
|
-
it 'test use_meep?' do
|
662
|
-
expect(subject.use_meep?('3.8.5')).to eq(false)
|
663
|
-
expect(subject.use_meep?('2016.1.2')).to eq(false)
|
664
|
-
expect(subject.use_meep?('2016.2.0')).to eq(true)
|
665
|
-
expect(subject.use_meep?('2016.2.0-rc1-gabcdef')).to eq(true)
|
666
|
-
end
|
667
|
-
|
668
|
-
it 'sets meep settings' do
|
669
|
-
expect(slice_installer_options(host)).to eq(meep_settings)
|
670
|
-
end
|
671
|
-
end
|
672
649
|
end
|
673
650
|
|
674
651
|
RSpec.shared_examples 'test flag' do |flag_name|
|
@@ -1114,7 +1091,7 @@ describe ClassMixedWithDSLInstallUtils do
|
|
1114
1091
|
path = unixhost['pe_dir']
|
1115
1092
|
filename = "#{ unixhost['dist'] }"
|
1116
1093
|
extension = '.tar'
|
1117
|
-
expect( subject ).to receive( :on ).with( unixhost, "cd #{ unixhost['working_dir'] }; curl #{ path }/#{ filename }#{ extension } | tar -xvf -" ).once
|
1094
|
+
expect( subject ).to receive( :on ).with( unixhost, "cd #{ unixhost['working_dir'] }; curl -L #{ path }/#{ filename }#{ extension } | tar -xvf -" ).once
|
1118
1095
|
subject.fetch_pe( [unixhost], {} )
|
1119
1096
|
end
|
1120
1097
|
|
@@ -1144,7 +1121,7 @@ describe ClassMixedWithDSLInstallUtils do
|
|
1144
1121
|
path = unixhost['pe_dir']
|
1145
1122
|
filename = "#{ unixhost['dist'] }"
|
1146
1123
|
extension = '.tar.gz'
|
1147
|
-
expect( subject ).to receive( :on ).with( unixhost, "cd #{ unixhost['working_dir'] }; curl #{ path }/#{ filename }#{ extension } | gunzip | tar -xvf -" ).once
|
1124
|
+
expect( subject ).to receive( :on ).with( unixhost, "cd #{ unixhost['working_dir'] }; curl -L #{ path }/#{ filename }#{ extension } | gunzip | tar -xvf -" ).once
|
1148
1125
|
subject.fetch_pe( [unixhost], {} )
|
1149
1126
|
end
|
1150
1127
|
|
@@ -1190,7 +1167,7 @@ describe ClassMixedWithDSLInstallUtils do
|
|
1190
1167
|
path = machost['pe_dir']
|
1191
1168
|
filename = "#{ machost['dist'] }"
|
1192
1169
|
extension = '.dmg'
|
1193
|
-
expect( subject ).to receive( :on ).with( machost, "cd #{ machost['working_dir'] }; curl -O #{ path }/#{ filename }#{ extension }" ).once
|
1170
|
+
expect( subject ).to receive( :on ).with( machost, "cd #{ machost['working_dir'] }; curl -L -O #{ path }/#{ filename }#{ extension }" ).once
|
1194
1171
|
subject.fetch_pe( [machost], {} )
|
1195
1172
|
end
|
1196
1173
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beaker-pe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.11.
|
4
|
+
version: 2.11.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppetlabs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -64,14 +64,14 @@ dependencies:
|
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
67
|
+
version: 12.3.3
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
74
|
+
version: 12.3.3
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: simplecov
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -248,6 +248,7 @@ executables:
|
|
248
248
|
extensions: []
|
249
249
|
extra_rdoc_files: []
|
250
250
|
files:
|
251
|
+
- ".github/dependabot.yml"
|
251
252
|
- ".gitignore"
|
252
253
|
- ".rspec"
|
253
254
|
- ".simplecov"
|
@@ -306,8 +307,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
306
307
|
- !ruby/object:Gem::Version
|
307
308
|
version: '0'
|
308
309
|
requirements: []
|
309
|
-
|
310
|
-
rubygems_version: 2.5.1
|
310
|
+
rubygems_version: 3.0.8
|
311
311
|
signing_key:
|
312
312
|
specification_version: 4
|
313
313
|
summary: Beaker PE DSL Helpers!
|