beaker-pe 3.6.8 → 3.6.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -1
- data/lib/beaker-pe/install/pe_utils.rb +22 -3
- data/lib/beaker-pe/version.rb +1 -1
- data/spec/beaker-pe/install/pe_utils_spec.rb +33 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e9e801f6873a3ffac7ca895055bb548f263a0df1f5e2f98203afe4e6aa2128c6
|
|
4
|
+
data.tar.gz: 2c8710970b09324ab563bacca5ed24ef64b670a68d039050792e9ff3d616773e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 62b396853cb2602f1bf6267341a190ea9e9a80d438d7d5694f1e3df1ba22585e4c64702f244f1714c91508f3876bb9e16f52703d196ae0518337a43006e6d929
|
|
7
|
+
data.tar.gz: db71aeff009c49aef8b5b6e4d6695834e3738a6804175edea98da6026d251166a2d3e658192c7c22ff969e8a622557e6f5ddd8f2188a1001cf5e38606a5b2687
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [3.6.
|
|
3
|
+
## [3.6.10](https://github.com/puppetlabs/beaker-pe/tree/3.6.10) (2026-10-22)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/3.6.9...3.6.10)
|
|
6
|
+
|
|
7
|
+
**Implemented enhancements:**
|
|
8
|
+
|
|
9
|
+
- \(maint\) Remove the PE tarball after unpacking it on unix hosts [\#318](https://github.com/puppetlabs/beaker-pe/pull/318) ([steveax](https://github.com/steveax))
|
|
10
|
+
|
|
11
|
+
## [3.6.9](https://github.com/puppetlabs/beaker-pe/tree/3.6.9) (2026-10-20)
|
|
12
|
+
|
|
13
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/3.6.8...3.6.9)
|
|
14
|
+
|
|
15
|
+
**Implemented enhancements:**
|
|
16
|
+
|
|
17
|
+
- \(PE-47138\) Add el-7 puppet-agent install support via agent-downloads [\#316](https://github.com/puppetlabs/beaker-pe/pull/316) ([shubhamshinde360](https://github.com/shubhamshinde360))
|
|
18
|
+
|
|
19
|
+
## [3.6.8](https://github.com/puppetlabs/beaker-pe/tree/3.6.8) (2026-09-21)
|
|
4
20
|
|
|
5
21
|
[Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/3.6.7...3.6.8)
|
|
6
22
|
|
|
@@ -408,6 +408,22 @@ NOASK
|
|
|
408
408
|
host.install_package_with_rpm("#{path}/#{filename}#{extension}")
|
|
409
409
|
end
|
|
410
410
|
|
|
411
|
+
# Determine the build package to download on an el-7 (Intel) host, install that package onto the host.
|
|
412
|
+
# Assumed file name format: puppet-agent-9.1.1.13-1.el7.x86_64.rpm.
|
|
413
|
+
# This method should be called after puppet is installed on the master since it relies on the master
|
|
414
|
+
# telling it the puppet agent version to form the download URL.
|
|
415
|
+
# @param [Host] host The el-7 host to download and install the package on.
|
|
416
|
+
# @param [Hash{Symbol=>Symbol, String}] opts The options
|
|
417
|
+
# @api private
|
|
418
|
+
def install_rpm_on_el7_host(host, puppet_agent_ver, opts)
|
|
419
|
+
# Since el-7 builds are not available in PE, download from agent-downloads.
|
|
420
|
+
vars = agent_package_common_vars(puppet_agent_ver, opts)
|
|
421
|
+
path = "#{vars[:agent_downloads_url]}/#{puppet_agent_ver}/repos/el/7/#{vars[:stream]}/x86_64"
|
|
422
|
+
filename = "puppet-agent-#{vars[:master_aio_version]}-1.el7.x86_64"
|
|
423
|
+
extension = ".rpm"
|
|
424
|
+
host.install_package_with_rpm("#{path}/#{filename}#{extension}")
|
|
425
|
+
end
|
|
426
|
+
|
|
411
427
|
#Determine the PE package to download/upload on a windows host, download/upload that package onto the host.
|
|
412
428
|
#Assumed file name format: puppet-enterprise-3.3.0-rc1-559-g97f0833.msi
|
|
413
429
|
# @param [Host] host The windows host to download/upload and unpack PE onto
|
|
@@ -447,7 +463,8 @@ NOASK
|
|
|
447
463
|
end
|
|
448
464
|
|
|
449
465
|
#Determine the PE package to download/upload on a unix style host, download/upload that package onto the host
|
|
450
|
-
#and unpack it.
|
|
466
|
+
#and unpack it. The archive is removed once it unpacks: nothing reads it afterwards, and on platforms whose
|
|
467
|
+
#/tmp is a RAM-backed tmpfs (ubuntu 26.04) it otherwise holds ~1 GB of memory for the life of the host.
|
|
451
468
|
# @param [Host] host The unix style host to download/upload and unpack PE onto
|
|
452
469
|
# @param [Hash{Symbol=>Symbol, String}] opts The options
|
|
453
470
|
# @option opts [String] :pe_dir Default directory or URL to pull PE package from
|
|
@@ -471,7 +488,7 @@ NOASK
|
|
|
471
488
|
gpg_key_overwrite(host, 'tarball')
|
|
472
489
|
end
|
|
473
490
|
if extension =~ /tar/
|
|
474
|
-
on host, "cd #{host['working_dir']}; tar -xvf #{filename}.tar"
|
|
491
|
+
on host, "cd #{host['working_dir']}; tar -xvf #{filename}.tar && rm -f #{filename}.tar"
|
|
475
492
|
gpg_key_overwrite(host, 'tarball')
|
|
476
493
|
end
|
|
477
494
|
else
|
|
@@ -502,7 +519,7 @@ NOASK
|
|
|
502
519
|
}
|
|
503
520
|
fetch_tarball_command = "cd #{host['working_dir']}; #{command_file_push}#{filename}#{extension}"
|
|
504
521
|
retry_on(host, fetch_tarball_command, retry_requirements)
|
|
505
|
-
on host, "cd #{host['working_dir']}; tar -xvf #{filename}#{extension}"
|
|
522
|
+
on host, "cd #{host['working_dir']}; tar -xvf #{filename}#{extension} && rm -f #{filename}#{extension}"
|
|
506
523
|
|
|
507
524
|
gpg_key_overwrite(host, 'tarball')
|
|
508
525
|
end
|
|
@@ -1285,6 +1302,8 @@ NOASK
|
|
|
1285
1302
|
install_rpm_on_sles11_host(host, install_params[:puppet_agent_version], opts)
|
|
1286
1303
|
elsif host['platform'] =~ /solaris-10-sparc/
|
|
1287
1304
|
install_pkg_on_sol10_sparc_host(host, install_params[:puppet_agent_version], opts)
|
|
1305
|
+
elsif host['packaging_platform'] =~ /^el-7-x86_64/ && !version_is_less(host['pe_ver'] || opts[:pe_ver], '2025.12')
|
|
1306
|
+
install_rpm_on_el7_host(host, install_params[:puppet_agent_version], opts)
|
|
1288
1307
|
else
|
|
1289
1308
|
install_params.delete(:pe_promoted_builds_url) if install_params[:pe_promoted_builds_url].nil?
|
|
1290
1309
|
install_puppet_agent_pe_promoted_repo_on(host, install_params)
|
data/lib/beaker-pe/version.rb
CHANGED
|
@@ -72,6 +72,10 @@ describe ClassMixedWithDSLInstallUtils do
|
|
|
72
72
|
:pe_ver => '3.0',
|
|
73
73
|
:type => 'pe',
|
|
74
74
|
:working_dir => '/tmp'} ) }
|
|
75
|
+
let(:el7host) { make_host( 'el7', { :platform => 'el-7-x86_64',
|
|
76
|
+
:pe_ver => '3.0',
|
|
77
|
+
:type => 'pe',
|
|
78
|
+
:working_dir => '/tmp'} ) }
|
|
75
79
|
let(:solaris10host) { make_host( 'sol10', { :platform => 'solaris-10-sparc',
|
|
76
80
|
:pe_ver => '3.0',
|
|
77
81
|
:type => 'pe',
|
|
@@ -1274,7 +1278,7 @@ describe ClassMixedWithDSLInstallUtils do
|
|
|
1274
1278
|
extension = '.tar.gz'
|
|
1275
1279
|
expect( subject ).to receive( :scp_to ).with( unixhost, "#{ path }/#{ filename }#{ extension }", "#{ unixhost['working_dir'] }/#{ filename }#{ extension }" ).once
|
|
1276
1280
|
expect( subject ).to receive( :on ).with( unixhost, /gunzip/ ).once
|
|
1277
|
-
expect( subject ).to receive( :on ).with( unixhost,
|
|
1281
|
+
expect( subject ).to receive( :on ).with( unixhost, "cd #{ unixhost['working_dir'] }; tar -xvf #{ filename }.tar && rm -f #{ filename }.tar" ).once
|
|
1278
1282
|
subject.fetch_pe( [unixhost], {} )
|
|
1279
1283
|
end
|
|
1280
1284
|
|
|
@@ -1292,6 +1296,9 @@ describe ClassMixedWithDSLInstallUtils do
|
|
|
1292
1296
|
expect( subject )
|
|
1293
1297
|
.to receive( :on )
|
|
1294
1298
|
.with( unixhost, "cd #{ unixhost['working_dir'] }; curl --fail --location --output #{ filename }#{ extension } #{ path }/#{ filename }#{ extension }", anything ).once
|
|
1299
|
+
expect( subject )
|
|
1300
|
+
.to receive( :on )
|
|
1301
|
+
.with( unixhost, "cd #{ unixhost['working_dir'] }; tar -xvf #{ filename }#{ extension } && rm -f #{ filename }#{ extension }" ).once
|
|
1295
1302
|
subject.fetch_pe( [unixhost], {} )
|
|
1296
1303
|
end
|
|
1297
1304
|
|
|
@@ -1329,6 +1336,9 @@ describe ClassMixedWithDSLInstallUtils do
|
|
|
1329
1336
|
expect( subject )
|
|
1330
1337
|
.to receive( :on )
|
|
1331
1338
|
.with( unixhost, "cd #{ unixhost['working_dir'] }; curl --fail --location --output #{ filename }#{ extension } #{ path }/#{ filename }#{ extension }", anything ).once
|
|
1339
|
+
expect( subject )
|
|
1340
|
+
.to receive( :on )
|
|
1341
|
+
.with( unixhost, "cd #{ unixhost['working_dir'] }; tar -xvf #{ filename }#{ extension } && rm -f #{ filename }#{ extension }" ).once
|
|
1332
1342
|
subject.fetch_pe( [unixhost], {} )
|
|
1333
1343
|
end
|
|
1334
1344
|
|
|
@@ -1898,6 +1908,28 @@ NOASK
|
|
|
1898
1908
|
end
|
|
1899
1909
|
end
|
|
1900
1910
|
|
|
1911
|
+
context "install rpm file in el-7 host" do
|
|
1912
|
+
let(:opts) {
|
|
1913
|
+
{ :puppet_collection => 'puppet9' }
|
|
1914
|
+
}
|
|
1915
|
+
let(:stream) { opts[:puppet_collection] }
|
|
1916
|
+
let(:puppet_agent_ver) { '9.1.1.30' }
|
|
1917
|
+
let(:agent_downloads_url) { "http://agent-downloads.delivery.puppetlabs.net/puppet-agent" }
|
|
1918
|
+
let(:master_version) { '9.1.1.30' }
|
|
1919
|
+
let(:path) { "#{agent_downloads_url}/#{puppet_agent_ver}/repos/el/7/#{stream}/x86_64" }
|
|
1920
|
+
let(:filename) { "puppet-agent-#{master_version}-1.el7.x86_64" }
|
|
1921
|
+
let(:extension) { '.rpm' }
|
|
1922
|
+
let(:url) { "#{path}/#{filename}#{extension}" }
|
|
1923
|
+
|
|
1924
|
+
it "generates the correct url to download the package" do
|
|
1925
|
+
allow( subject ).to receive( :puppet_fact ).and_return( master_version )
|
|
1926
|
+
allow( subject ).to receive( :master ).and_return( {} )
|
|
1927
|
+
|
|
1928
|
+
expect( el7host ).to receive( :install_package_with_rpm ).with( url ).once
|
|
1929
|
+
subject.install_rpm_on_el7_host(el7host, puppet_agent_ver, opts)
|
|
1930
|
+
end
|
|
1931
|
+
end
|
|
1932
|
+
|
|
1901
1933
|
it 'can perform a simple installation' do
|
|
1902
1934
|
expect(subject).to receive(:get_mco_setting).and_return({}).thrice
|
|
1903
1935
|
allow( subject ).to receive( :verify_network_resources).with(hosts, nil)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: beaker-pe
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.6.
|
|
4
|
+
version: 3.6.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Puppetlabs
|
|
@@ -320,7 +320,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
320
320
|
- !ruby/object:Gem::Version
|
|
321
321
|
version: '0'
|
|
322
322
|
requirements: []
|
|
323
|
-
rubygems_version: 4.0.
|
|
323
|
+
rubygems_version: 4.0.20
|
|
324
324
|
specification_version: 4
|
|
325
325
|
summary: Beaker PE DSL Helpers!
|
|
326
326
|
test_files: []
|