beaker-pe 3.6.8 → 3.6.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e808082867ede5c141a2d6e9def116fcd87d33d1c97ca2a16a401e158794df4
4
- data.tar.gz: 96feaaf93f3f957dd331277c3f182cf702aa9c6ec3f1c0212c9381c3ccd819cc
3
+ metadata.gz: 5bf28b377830e292e4f4e31e158fe194f05efc02863763561459208baa67249e
4
+ data.tar.gz: b00ca47f6d3868058015566c13681cb49d9b399be2a398f2dad3568ebb5129d2
5
5
  SHA512:
6
- metadata.gz: 975b99a50a8c499ac0e1afef7bf86939b088073bda0a9ba2236c1851858454ea96b6b9f7a8c9570cd23dc16b4cfb27299527aeb385c33b1a7a969199d873aaef
7
- data.tar.gz: 28cbb7db3d6523034643dcd5134509209839a9368de7f274a41bfd1ae72c704f76573d13227efc073335874d85c4bfb9c3c414a5a435703760479cd3d2c7c6e4
6
+ metadata.gz: 4b340f0b9833a7536dad2a862d0eb85c400c2c1fcc83aa6ee5549a6dbd3490a73cd0c3dc2fd14b89d0c80487a3bf377a84dcb5f11c35e62dc293adc960385991
7
+ data.tar.gz: 2ea95782b9ade1c357ac4d7a262da2eb4ee0bacb222300a445bac274cef9dd7570a2c761e6fe65c9dd9cb399820cf117ee73e9850df66632c5ad474f6739a1b3
data/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # Changelog
2
2
 
3
- ## [3.6.8](https://github.com/puppetlabs/beaker-pe/tree/3.6.8) (2026-09-17)
3
+ ## [3.6.9](https://github.com/puppetlabs/beaker-pe/tree/3.6.9) (2026-10-20)
4
+
5
+ [Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/3.6.8...3.6.9)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - \(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))
10
+
11
+ ## [3.6.8](https://github.com/puppetlabs/beaker-pe/tree/3.6.8) (2026-09-21)
4
12
 
5
13
  [Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/3.6.7...3.6.8)
6
14
 
@@ -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
@@ -1285,6 +1301,8 @@ NOASK
1285
1301
  install_rpm_on_sles11_host(host, install_params[:puppet_agent_version], opts)
1286
1302
  elsif host['platform'] =~ /solaris-10-sparc/
1287
1303
  install_pkg_on_sol10_sparc_host(host, install_params[:puppet_agent_version], opts)
1304
+ elsif host['packaging_platform'] =~ /^el-7-x86_64/ && !version_is_less(host['pe_ver'] || opts[:pe_ver], '2025.12')
1305
+ install_rpm_on_el7_host(host, install_params[:puppet_agent_version], opts)
1288
1306
  else
1289
1307
  install_params.delete(:pe_promoted_builds_url) if install_params[:pe_promoted_builds_url].nil?
1290
1308
  install_puppet_agent_pe_promoted_repo_on(host, install_params)
@@ -3,7 +3,7 @@ module Beaker
3
3
  module PE
4
4
 
5
5
  module Version
6
- STRING = '3.6.8'
6
+ STRING = '3.6.9'
7
7
  end
8
8
 
9
9
  end
@@ -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',
@@ -1898,6 +1902,28 @@ NOASK
1898
1902
  end
1899
1903
  end
1900
1904
 
1905
+ context "install rpm file in el-7 host" do
1906
+ let(:opts) {
1907
+ { :puppet_collection => 'puppet9' }
1908
+ }
1909
+ let(:stream) { opts[:puppet_collection] }
1910
+ let(:puppet_agent_ver) { '9.1.1.30' }
1911
+ let(:agent_downloads_url) { "http://agent-downloads.delivery.puppetlabs.net/puppet-agent" }
1912
+ let(:master_version) { '9.1.1.30' }
1913
+ let(:path) { "#{agent_downloads_url}/#{puppet_agent_ver}/repos/el/7/#{stream}/x86_64" }
1914
+ let(:filename) { "puppet-agent-#{master_version}-1.el7.x86_64" }
1915
+ let(:extension) { '.rpm' }
1916
+ let(:url) { "#{path}/#{filename}#{extension}" }
1917
+
1918
+ it "generates the correct url to download the package" do
1919
+ allow( subject ).to receive( :puppet_fact ).and_return( master_version )
1920
+ allow( subject ).to receive( :master ).and_return( {} )
1921
+
1922
+ expect( el7host ).to receive( :install_package_with_rpm ).with( url ).once
1923
+ subject.install_rpm_on_el7_host(el7host, puppet_agent_ver, opts)
1924
+ end
1925
+ end
1926
+
1901
1927
  it 'can perform a simple installation' do
1902
1928
  expect(subject).to receive(:get_mco_setting).and_return({}).thrice
1903
1929
  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.8
4
+ version: 3.6.9
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.16
323
+ rubygems_version: 4.0.20
324
324
  specification_version: 4
325
325
  summary: Beaker PE DSL Helpers!
326
326
  test_files: []