beaker-pe 3.6.7 → 3.6.8

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: 8c64a23179a869b41ceb2ea32740a983e8a27172939f4347b6401d94265c1f26
4
- data.tar.gz: 1f961918eda0b697d7246d4abef2cf451f742a5f816a9667e3d2259ca415d7b9
3
+ metadata.gz: 8e808082867ede5c141a2d6e9def116fcd87d33d1c97ca2a16a401e158794df4
4
+ data.tar.gz: 96feaaf93f3f957dd331277c3f182cf702aa9c6ec3f1c0212c9381c3ccd819cc
5
5
  SHA512:
6
- metadata.gz: '07931522f4f5f30eb04235539a1b9d3d30b3cc16eb551bb7d78b5eed7f010b62b9bcd07de1b15b66be5419bdf273b44c097710484b8976597b8b1ce67efab31c'
7
- data.tar.gz: 27cd5ed3c62caa3899b980fd3f63c0c3c5c0c5f5f52e1dca4601d50ba70a7c1132b2dc07a56a019caff526e83cb9c74523dd25c6321cc26fb0463c95344acc7a
6
+ metadata.gz: 975b99a50a8c499ac0e1afef7bf86939b088073bda0a9ba2236c1851858454ea96b6b9f7a8c9570cd23dc16b4cfb27299527aeb385c33b1a7a969199d873aaef
7
+ data.tar.gz: 28cbb7db3d6523034643dcd5134509209839a9368de7f274a41bfd1ae72c704f76573d13227efc073335874d85c4bfb9c3c414a5a435703760479cd3d2c7c6e4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.6.8](https://github.com/puppetlabs/beaker-pe/tree/3.6.8) (2026-09-17)
4
+
5
+ [Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/3.6.7...3.6.8)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - \(PE-32680\) Fix GPG key refresh for PE 2023.8.0 and earlier [\#308](https://github.com/puppetlabs/beaker-pe/pull/308) ([cthorn42](https://github.com/cthorn42))
10
+
3
11
  ## [3.6.7](https://github.com/puppetlabs/beaker-pe/tree/3.6.7) (2026-08-14)
4
12
 
5
13
  [Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/3.6.6...3.6.7)
@@ -108,19 +116,19 @@
108
116
 
109
117
  ## [2.19.0](https://github.com/puppetlabs/beaker-pe/tree/2.19.0) (2024-06-21)
110
118
 
111
- [Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/3.2.0...2.19.0)
119
+ [Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/2.18.0...2.19.0)
112
120
 
113
121
  **Implemented enhancements:**
114
122
 
115
123
  - \(PE-38685\) Beaker 6 upgrade [\#281](https://github.com/puppetlabs/beaker-pe/pull/281) ([tlehman](https://github.com/tlehman))
116
124
 
117
- ## [3.2.0](https://github.com/puppetlabs/beaker-pe/tree/3.2.0) (2024-06-11)
125
+ ## [2.18.0](https://github.com/puppetlabs/beaker-pe/tree/2.18.0) (2024-06-11)
118
126
 
119
- [Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/2.18.0...3.2.0)
127
+ [Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/3.2.0...2.18.0)
120
128
 
121
- ## [2.18.0](https://github.com/puppetlabs/beaker-pe/tree/2.18.0) (2024-06-11)
129
+ ## [3.2.0](https://github.com/puppetlabs/beaker-pe/tree/3.2.0) (2024-06-11)
122
130
 
123
- [Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/3.1.0...2.18.0)
131
+ [Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/3.1.0...3.2.0)
124
132
 
125
133
  **Implemented enhancements:**
126
134
 
@@ -128,19 +136,19 @@
128
136
 
129
137
  ## [3.1.0](https://github.com/puppetlabs/beaker-pe/tree/3.1.0) (2024-05-22)
130
138
 
131
- [Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/2.17.0...3.1.0)
139
+ [Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/3.0.1...3.1.0)
132
140
 
133
141
  **Merged pull requests:**
134
142
 
135
143
  - \(PE-37784\) Remove upper bound for beaker-puppet [\#273](https://github.com/puppetlabs/beaker-pe/pull/273) ([nmburgan](https://github.com/nmburgan))
136
144
 
137
- ## [2.17.0](https://github.com/puppetlabs/beaker-pe/tree/2.17.0) (2024-04-10)
145
+ ## [3.0.1](https://github.com/puppetlabs/beaker-pe/tree/3.0.1) (2024-04-10)
138
146
 
139
- [Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/3.0.1...2.17.0)
147
+ [Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/2.17.0...3.0.1)
140
148
 
141
- ## [3.0.1](https://github.com/puppetlabs/beaker-pe/tree/3.0.1) (2024-04-10)
149
+ ## [2.17.0](https://github.com/puppetlabs/beaker-pe/tree/2.17.0) (2024-04-10)
142
150
 
143
- [Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/2.16.1...3.0.1)
151
+ [Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/2.16.1...2.17.0)
144
152
 
145
153
  ## [2.16.1](https://github.com/puppetlabs/beaker-pe/tree/2.16.1) (2024-03-19)
146
154
 
@@ -510,13 +510,13 @@ NOASK
510
510
  end
511
511
 
512
512
  #PE-32680, GPG expired on older PE versions, need to update with a new GPG key on the primary server
513
- #only affects PE versions 2019.8.4 and earlier, and only needed for debian, ubuntu, and sles agent platforms
513
+ #only affects PE versions 2023.8.0 and earlier, and only needed for debian, ubuntu, and sles agent platforms
514
514
  # @param [Host] host to see if we need to update the gpg key
515
515
  # @param [String] location of the GPG key we intend to overwrite
516
- # If someone is using this gem and is not on the PE private network, they need to download the new private GPG key and host
517
- # it somewhere, then set the URL as an enviromental variable GPG_URL.
516
+ # Defaults to Puppet's public release key (same key, renewed self-signature); override
517
+ # via the GPG_URL environment variable if a different source is needed.
518
518
  def gpg_key_overwrite(host, location)
519
- gpg_url = ENV['GPG_URL'] || 'https://artifactory.delivery.puppetlabs.net/artifactory/generic__local/extended_gpg_key.asc'
519
+ gpg_url = ENV['GPG_URL'] || 'https://yum.puppet.com/RPM-GPG-KEY-puppet'
520
520
  case location
521
521
  when 'tarball'
522
522
  path_to_gpg_key = "#{host['working_dir']}/#{host['dist']}/packages/GPG-KEY-puppet"
@@ -528,9 +528,26 @@ NOASK
528
528
  raise(StandardError, "gpg_key_overwrite requires a valid location: tarball, or pe_repo. #{location} was supplied")
529
529
  end
530
530
 
531
- if (host['roles'].include?('master') || host['roles'].include?('pe_postgres')) && version_is_less(host[:pe_ver], '2019.8.5') && hosts.any? {|agent| agent['platform'] =~ /(debian)|(ubuntu)|(sles)/}
531
+ if (host['roles'].include?('master') || host['roles'].include?('pe_postgres')) && version_is_less(host[:pe_ver], '2023.8.1') && hosts.any? {|agent| agent['platform'] =~ /(debian)|(ubuntu)|(sles)/}
532
+ # Some PE releases also ship a separately-dated copy of this key alongside the
533
+ # undated one (e.g. GPG-KEY-puppet-2025-04-06), which frictionless install scripts
534
+ # may reference directly. Find any such siblings before we remove the undated file,
535
+ # so we can refresh them with the same content too.
536
+ gpg_key_dir = File.dirname(path_to_gpg_key)
537
+ gpg_key_basename = File.basename(path_to_gpg_key)
538
+ dated_gpg_keys = on(host, "ls -1 #{gpg_key_dir}/#{gpg_key_basename}-[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] 2>/dev/null", :acceptable_exit_codes => [0,1,2]).stdout.split("\n")
539
+
532
540
  on(host, "rm -f #{path_to_gpg_key}")
533
- on(host, "curl #{gpg_url} --output #{path_to_gpg_key}")
541
+ # The puppet-agent tarball fetch above already uses retry_on to survive network
542
+ # blips; do the same here so a transient curl failure doesn't abort the whole run.
543
+ retry_on(host, "curl --fail #{gpg_url} --output #{path_to_gpg_key}", {
544
+ desired_exit_codes: [0],
545
+ max_retries: 3,
546
+ verbose: 'true'
547
+ })
548
+ unless dated_gpg_keys.empty?
549
+ on(host, dated_gpg_keys.map { |dated_gpg_key| "cp #{path_to_gpg_key} #{dated_gpg_key}" }.join(' && '))
550
+ end
534
551
  if location == 'pe_repo'
535
552
  gpg_key_overwrite(host, 'pe_repo_env')
536
553
  elsif location == 'pe_repo_env'
@@ -3,7 +3,7 @@ module Beaker
3
3
  module PE
4
4
 
5
5
  module Version
6
- STRING = '3.6.7'
6
+ STRING = '3.6.8'
7
7
  end
8
8
 
9
9
  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.7
4
+ version: 3.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppetlabs