beaker-pe 3.6.0 → 3.6.2

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: eed7c2a8bf17ddf132b8304f399dc281662a1e5bcf30adccacded869ef4046ec
4
- data.tar.gz: fd6a280140761abbc2daac3d441ed0514ddc172f338323467e56bb901f45e2c2
3
+ metadata.gz: 82fe681f6a5d8f304089ca2dca03e4e9080cbf502b0665e072103dac9e9e4aa9
4
+ data.tar.gz: 22f5065db00df1654fdc261de80272b0a3719db9fc6e2027b0f92d3e300f90e8
5
5
  SHA512:
6
- metadata.gz: a66def81ab2b5d734370bf39488a85c9e138918aceae47528adf4af8fc7aa0efe48963341e9e6c2fa06583bf926b6b549291995fde8259e8abe9aa85be20629f
7
- data.tar.gz: 371a84424c62700aa73b68c161a3a8ede63accc2a5a909ddaebb5eeeeea199331c46651ee40b2283096a1991f786e67d37b98e311381ff63eb15225c01add041
6
+ metadata.gz: bc742e9c75813510b30970550c55ec34c56727e1209e2c8a71ea69c89ff1fe1a67e4abd1e4f98ae39ed5d01140f4ad04b6afd795ed264f9c3fd840c749c9ab9a
7
+ data.tar.gz: 20d4a84d869295af9703cc72e0c2f3f277e8735f0380337f13ea1be23c51a081c6171ae73c5c4edfee98899327490325ed4f5252513b331ff819b968e05c4066
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.6.1](https://github.com/puppetlabs/beaker-pe/tree/3.6.1) (2025-11-21)
4
+
5
+ [Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/3.6.0...3.6.1)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - \[PE-41604\]: Update Solaris 10 SPARC package installation method in PE Utils [\#291](https://github.com/puppetlabs/beaker-pe/pull/291) ([span786](https://github.com/span786))
10
+
3
11
  ## [3.6.0](https://github.com/puppetlabs/beaker-pe/tree/3.6.0) (2025-11-20)
4
12
 
5
13
  [Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/3.5.0...3.6.0)
@@ -349,9 +349,40 @@ module Beaker
349
349
  # Since sol10-sparc builds are not available in PE, download from agent-downloads.
350
350
  vars = agent_package_common_vars(puppet_agent_ver, opts)
351
351
  path = "#{vars[:agent_downloads_url]}/#{puppet_agent_ver}/repos/solaris/10/#{vars[:stream]}"
352
- filename = "puppet-agent-#{vars[:master_aio_version]}-1.sparc"
353
- extension = ".pkg.gz"
354
- host.install_package("#{path}/#{filename}#{extension}")
352
+ filename = "puppet-agent-#{vars[:master_aio_version]}-1.sparc.pkg.gz"
353
+ vanagon_noask = <<-NOASK
354
+ # Write the noask file to a temporary directory
355
+ # please see man -s 4 admin for details about this file:
356
+ # http://www.opensolarisforum.org/man/man4/admin.html
357
+ #
358
+ # The key thing we don\'t want to prompt for are conflicting files.
359
+ # The other nocheck settings are mostly defensive to prevent prompts
360
+ # We _do_ want to check for available free space and abort if there is
361
+ # not enough
362
+ mail=
363
+ # Overwrite already installed instances
364
+ instance=overwrite
365
+ # Do not bother checking for partially installed packages
366
+ partial=nocheck
367
+ # Do not bother checking the runlevel
368
+ runlevel=nocheck
369
+ # Do not bother checking package dependencies (We take care of this)
370
+ idepend=nocheck
371
+ rdepend=nocheck
372
+ # DO check for available free space and abort if there isn\'t enough
373
+ space=quit
374
+ # Do not check for setuid files.
375
+ setuid=nocheck
376
+ # Do not check if files conflict with other packages
377
+ conflict=nocheck
378
+ # We have no action scripts. Do not check for them.
379
+ action=nocheck
380
+ # Install to the default base directory.
381
+ basedir=default
382
+ NOASK
383
+
384
+ host.execute("echo \"#{vanagon_noask}\" > /var/tmp/vanagon-noask")
385
+ host.execute("curl --output #{filename} #{path}/#{filename} && gunzip -c #{filename} | pkgadd -d /dev/stdin -a /var/tmp/vanagon-noask all")
355
386
  end
356
387
 
357
388
  # Determine the build package to download on a sles-11 (Intel) host, install that package onto the host.
@@ -794,8 +825,10 @@ module Beaker
794
825
 
795
826
  install_agents_only_on(agents, opts)
796
827
 
828
+ # waitforlock in case install_agents_only_on triggers a puppet run on the
829
+ # master that is still in progress when we get here
797
830
  step "Run puppet a second time on the primary to populate services.conf (PE-19054)" do
798
- on(master, puppet_agent('-t'), :acceptable_exit_codes => [0,2])
831
+ on(master, puppet_agent("-t #{waitforlock_flag(master)}".rstrip), :acceptable_exit_codes => [0,2])
799
832
  end
800
833
  end
801
834
 
@@ -2071,9 +2104,11 @@ EOM
2071
2104
  stop_agent_on(pe_infrastructure, :run_in_parallel => true)
2072
2105
  end
2073
2106
 
2107
+ # waitforlock in case stopping the agent run after stopping the agent service
2108
+ # takes a little longer than usual
2074
2109
  step "First puppet run on infrastructure + postgres node" do
2075
2110
  [master, database, dashboard, pe_postgres].uniq.each do |host|
2076
- on host, 'puppet agent -t', :acceptable_exit_codes => [0,2]
2111
+ on host, ["puppet agent -t", waitforlock_flag(host)].reject(&:empty?).join(' '), :acceptable_exit_codes => [0,2]
2077
2112
  end
2078
2113
  end
2079
2114
 
@@ -2081,13 +2116,15 @@ EOM
2081
2116
  install_agents_only_on(non_infrastructure, opts)
2082
2117
 
2083
2118
  step "Run puppet to setup mcollective and pxp-agent" do
2084
- on master, 'puppet agent -t', :acceptable_exit_codes => [0,2]
2119
+ on master, ["puppet agent -t", waitforlock_flag(master)].reject(&:empty?).join(' '), :acceptable_exit_codes => [0,2]
2085
2120
  run_puppet_on_non_infrastructure_nodes(non_infrastructure)
2086
2121
  end
2087
2122
 
2088
2123
  end
2124
+ # waitforlock in case install_agents_only_on triggers a puppet run on the
2125
+ # master that is still in progress when we get here
2089
2126
  step "Run puppet a second time on the primary to populate services.conf (PE-19054)" do
2090
- on master, 'puppet agent -t', :acceptable_exit_codes => [0,2]
2127
+ on master, ["puppet agent -t", waitforlock_flag(master)].reject(&:empty?).join(' '), :acceptable_exit_codes => [0,2]
2091
2128
  end
2092
2129
  end
2093
2130
 
@@ -3,7 +3,7 @@ module Beaker
3
3
  module PE
4
4
 
5
5
  module Version
6
- STRING = '3.6.0'
6
+ STRING = '3.6.2'
7
7
  end
8
8
 
9
9
  end
@@ -1692,19 +1692,51 @@ describe ClassMixedWithDSLInstallUtils do
1692
1692
  { :puppet_collection => 'puppet8' }
1693
1693
  }
1694
1694
  let(:stream) { opts[:puppet_collection] }
1695
- let(:puppet_agent_ver) { '8.15.0.65' }
1695
+ let(:puppet_agent_ver) { '8.16.0' }
1696
1696
  let(:agent_downloads_url) { "http://agent-downloads.delivery.puppetlabs.net/puppet-agent" }
1697
- let(:master_version) { '8.15.0.65.gd2a4b575d' }
1697
+ let(:master_version) { '8.16.0' }
1698
1698
  let(:path) { "#{agent_downloads_url}/#{puppet_agent_ver}/repos/solaris/10/#{stream}" }
1699
- let(:filename) { "puppet-agent-#{master_version}-1.sparc" }
1700
- let(:extension) { '.pkg.gz' }
1701
- let(:url) { "#{path}/#{filename}#{extension}" }
1699
+ let(:filename) { "puppet-agent-#{master_version}-1.sparc.pkg.gz" }
1700
+ let(:url) { "#{path}/#{filename}" }
1701
+ let(:vanagon_noask) do
1702
+ <<-NOASK
1703
+ # Write the noask file to a temporary directory
1704
+ # please see man -s 4 admin for details about this file:
1705
+ # http://www.opensolarisforum.org/man/man4/admin.html
1706
+ #
1707
+ # The key thing we don\'t want to prompt for are conflicting files.
1708
+ # The other nocheck settings are mostly defensive to prevent prompts
1709
+ # We _do_ want to check for available free space and abort if there is
1710
+ # not enough
1711
+ mail=
1712
+ # Overwrite already installed instances
1713
+ instance=overwrite
1714
+ # Do not bother checking for partially installed packages
1715
+ partial=nocheck
1716
+ # Do not bother checking the runlevel
1717
+ runlevel=nocheck
1718
+ # Do not bother checking package dependencies (We take care of this)
1719
+ idepend=nocheck
1720
+ rdepend=nocheck
1721
+ # DO check for available free space and abort if there isn\'t enough
1722
+ space=quit
1723
+ # Do not check for setuid files.
1724
+ setuid=nocheck
1725
+ # Do not check if files conflict with other packages
1726
+ conflict=nocheck
1727
+ # We have no action scripts. Do not check for them.
1728
+ action=nocheck
1729
+ # Install to the default base directory.
1730
+ basedir=default
1731
+ NOASK
1732
+ end
1702
1733
 
1703
1734
  it 'generates the correct url to download the package' do
1704
1735
  allow( subject ).to receive( :puppet_fact ).and_return( master_version )
1705
1736
  allow( subject ).to receive( :master ).and_return( {} )
1706
1737
 
1707
- expect( hosts[5] ).to receive( :install_package ).with( url ).once
1738
+ expect( hosts[5] ).to receive( :execute ).with( "echo \"#{vanagon_noask}\" > /var/tmp/vanagon-noask" ).once
1739
+ expect( hosts[5] ).to receive( :execute ).with( "curl --output #{filename} #{url} && gunzip -c #{filename} | pkgadd -d /dev/stdin -a /var/tmp/vanagon-noask all" ).once
1708
1740
  subject.install_pkg_on_sol10_sparc_host(hosts[5], puppet_agent_ver, opts)
1709
1741
  end
1710
1742
  end
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.0
4
+ version: 3.6.2
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: 3.6.9
323
+ rubygems_version: 4.0.10
324
324
  specification_version: 4
325
325
  summary: Beaker PE DSL Helpers!
326
326
  test_files: []