beaker-pe 3.6.5 → 3.6.6
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 +33 -13
- data/lib/beaker-pe/install/pe_utils.rb +23 -1
- data/lib/beaker-pe/version.rb +1 -1
- data/spec/beaker-pe/install/pe_utils_spec.rb +42 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aa8b72f2297a472ddc6291dd99dba0607bee54af45ebf9599675aac36823ecc7
|
|
4
|
+
data.tar.gz: 8186462c53f80d68b4d0c19c46d1fafdb24bd4af604b18d2b40a3ca0820dbf23
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 723ce4a758aaa6cfd40b907ae7a6877349d6402393e445b9a9f147437d60db22d64d9ef29f795884f0f16a9b07c8cb566e9a9bcf50383cfd1819266a59ef0d6d
|
|
7
|
+
data.tar.gz: b862c17a232e7c30b7d5d623a0d947a0cf95c58554722f76cba6f5f23e5b60a224e30ba0ca04fa2f8058192b0ab46b831d101831fb894ea9270d745fe839d16e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,28 +1,45 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [3.6.
|
|
3
|
+
## [3.6.6](https://github.com/puppetlabs/beaker-pe/tree/3.6.6) (2026-08-12)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/3.6.5...3.6.6)
|
|
6
|
+
|
|
7
|
+
**Fixed bugs:**
|
|
8
|
+
|
|
9
|
+
- \(PE-45827\) Prefer the ssl status endpoint for PuppetDB liveness validation [\#311](https://github.com/puppetlabs/beaker-pe/pull/311) ([jonathannewman](https://github.com/jonathannewman))
|
|
10
|
+
|
|
11
|
+
## [3.6.5](https://github.com/puppetlabs/beaker-pe/tree/3.6.5) (2026-07-30)
|
|
4
12
|
|
|
5
13
|
[Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/3.6.4...3.6.5)
|
|
6
14
|
|
|
7
15
|
**Implemented enhancements:**
|
|
8
16
|
|
|
9
|
-
- (PE-45366) Add
|
|
17
|
+
- \(PE-45366\) Add pe\_run\_in\_parallel option, serial by default on macOS [\#309](https://github.com/puppetlabs/beaker-pe/pull/309) ([Magisus](https://github.com/Magisus))
|
|
18
|
+
|
|
19
|
+
**Merged pull requests:**
|
|
20
|
+
|
|
21
|
+
- \(maint\) prepare for release 3.6.5 [\#310](https://github.com/puppetlabs/beaker-pe/pull/310) ([Magisus](https://github.com/Magisus))
|
|
10
22
|
|
|
11
23
|
## [3.6.4](https://github.com/puppetlabs/beaker-pe/tree/3.6.4) (2026-07-23)
|
|
12
24
|
|
|
13
25
|
[Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/3.6.3...3.6.4)
|
|
14
26
|
|
|
15
|
-
**
|
|
27
|
+
**Merged pull requests:**
|
|
16
28
|
|
|
17
|
-
-
|
|
29
|
+
- \(maint\) prepare for release 3.6.4 [\#307](https://github.com/puppetlabs/beaker-pe/pull/307) ([Magisus](https://github.com/Magisus))
|
|
30
|
+
- \(PE-41009\) Fall back to agent-downloads when promoted agent is missing from public mirror [\#306](https://github.com/puppetlabs/beaker-pe/pull/306) ([Magisus](https://github.com/Magisus))
|
|
18
31
|
|
|
19
32
|
## [3.6.3](https://github.com/puppetlabs/beaker-pe/tree/3.6.3) (2026-07-16)
|
|
20
33
|
|
|
21
34
|
[Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/3.6.2...3.6.3)
|
|
22
35
|
|
|
23
|
-
**
|
|
36
|
+
**Implemented enhancements:**
|
|
24
37
|
|
|
25
|
-
-
|
|
38
|
+
- \(PE-45082\) Broaden is\_expected\_pe\_postgres\_failure? allowlist [\#303](https://github.com/puppetlabs/beaker-pe/pull/303) ([steveax](https://github.com/steveax))
|
|
39
|
+
|
|
40
|
+
**Merged pull requests:**
|
|
41
|
+
|
|
42
|
+
- \(maint\) prepare for release 3.6.3 [\#304](https://github.com/puppetlabs/beaker-pe/pull/304) ([steveax](https://github.com/steveax))
|
|
26
43
|
|
|
27
44
|
## [3.6.2](https://github.com/puppetlabs/beaker-pe/tree/3.6.2) (2026-06-05)
|
|
28
45
|
|
|
@@ -30,7 +47,7 @@
|
|
|
30
47
|
|
|
31
48
|
**Fixed bugs:**
|
|
32
49
|
|
|
33
|
-
- Add waitforlock
|
|
50
|
+
- Add waitforlock\_flag to second puppet runs to prevent lock collisions [\#300](https://github.com/puppetlabs/beaker-pe/pull/300) ([jonathannewman](https://github.com/jonathannewman))
|
|
34
51
|
|
|
35
52
|
## [3.6.1](https://github.com/puppetlabs/beaker-pe/tree/3.6.1) (2025-11-21)
|
|
36
53
|
|
|
@@ -54,15 +71,20 @@
|
|
|
54
71
|
|
|
55
72
|
**Implemented enhancements:**
|
|
56
73
|
|
|
57
|
-
- \(
|
|
74
|
+
- \(maint\) prepare for 3.5.0 release [\#288](https://github.com/puppetlabs/beaker-pe/pull/288) ([tvpartytonight](https://github.com/tvpartytonight))
|
|
75
|
+
- \(PE-40793\) Follow https-\>\>http redirects [\#287](https://github.com/puppetlabs/beaker-pe/pull/287) ([tvpartytonight](https://github.com/tvpartytonight))
|
|
58
76
|
|
|
59
|
-
## [3.4.0](https://github.com/puppetlabs/beaker-pe/tree/3.4.0) (2025-03-
|
|
77
|
+
## [3.4.0](https://github.com/puppetlabs/beaker-pe/tree/3.4.0) (2025-03-13)
|
|
60
78
|
|
|
61
79
|
[Full Changelog](https://github.com/puppetlabs/beaker-pe/compare/3.3.1...3.4.0)
|
|
62
80
|
|
|
63
81
|
**Implemented enhancements:**
|
|
64
82
|
|
|
65
|
-
- \(PE-40143\)
|
|
83
|
+
- \(PE-40143\) Update beaker-pe for ruby 3.2 compatibility [\#285](https://github.com/puppetlabs/beaker-pe/pull/285) ([tvpartytonight](https://github.com/tvpartytonight))
|
|
84
|
+
|
|
85
|
+
**Merged pull requests:**
|
|
86
|
+
|
|
87
|
+
- \(maint\) prep for 3.4.0 release [\#286](https://github.com/puppetlabs/beaker-pe/pull/286) ([tvpartytonight](https://github.com/tvpartytonight))
|
|
66
88
|
|
|
67
89
|
## [3.3.1](https://github.com/puppetlabs/beaker-pe/tree/3.3.1) (2024-12-05)
|
|
68
90
|
|
|
@@ -728,7 +750,7 @@
|
|
|
728
750
|
**Merged pull requests:**
|
|
729
751
|
|
|
730
752
|
- PE-11351 clear puppet jenkins slaves [\#98](https://github.com/puppetlabs/beaker-pe/pull/98) ([mwbutcher](https://github.com/mwbutcher))
|
|
731
|
-
- \(maint\) Add beaker-abs to gemspec [\#97](https://github.com/puppetlabs/beaker-pe/pull/97) ([
|
|
753
|
+
- \(maint\) Add beaker-abs to gemspec [\#97](https://github.com/puppetlabs/beaker-pe/pull/97) ([junebug-spencer](https://github.com/junebug-spencer))
|
|
732
754
|
- \(RE-9922\) Migrate from stickler to artifactory [\#96](https://github.com/puppetlabs/beaker-pe/pull/96) ([sarameisburger](https://github.com/sarameisburger))
|
|
733
755
|
|
|
734
756
|
## [1.32.0](https://github.com/puppetlabs/beaker-pe/tree/1.32.0) (2018-01-09)
|
|
@@ -799,7 +821,6 @@
|
|
|
799
821
|
|
|
800
822
|
- Fix agent installation failure caused by previous commit [\#87](https://github.com/puppetlabs/beaker-pe/pull/87) ([shaigy](https://github.com/shaigy))
|
|
801
823
|
- PE-22051 Changes for adding loadbalancer to LEI job [\#86](https://github.com/puppetlabs/beaker-pe/pull/86) ([shaigy](https://github.com/shaigy))
|
|
802
|
-
- \(MAINT\) Fix linux masterless installation [\#70](https://github.com/puppetlabs/beaker-pe/pull/70) ([Renelast](https://github.com/Renelast))
|
|
803
824
|
|
|
804
825
|
## [1.23.0](https://github.com/puppetlabs/beaker-pe/tree/1.23.0) (2017-09-15)
|
|
805
826
|
|
|
@@ -1153,7 +1174,6 @@
|
|
|
1153
1174
|
|
|
1154
1175
|
- \(maint\) Remove leftover comments [\#7](https://github.com/puppetlabs/beaker-pe/pull/7) ([tvpartytonight](https://github.com/tvpartytonight))
|
|
1155
1176
|
- BKR-656 [\#6](https://github.com/puppetlabs/beaker-pe/pull/6) ([tvpartytonight](https://github.com/tvpartytonight))
|
|
1156
|
-
- Fixes windows masterless installation [\#1](https://github.com/puppetlabs/beaker-pe/pull/1) ([Renelast](https://github.com/Renelast))
|
|
1157
1177
|
|
|
1158
1178
|
## [0.1.2](https://github.com/puppetlabs/beaker-pe/tree/0.1.2) (2016-04-05)
|
|
1159
1179
|
|
|
@@ -1840,11 +1840,33 @@ EOM
|
|
|
1840
1840
|
if version_is_less(host['pe_ver'], '2016.1.0')
|
|
1841
1841
|
return true
|
|
1842
1842
|
end
|
|
1843
|
+
|
|
1844
|
+
ssl_port = options[:puppetdb_port_ssl] || 8081
|
|
1845
|
+
nonssl_port = options[:puppetdb_port_nonssl] || 8080
|
|
1846
|
+
|
|
1843
1847
|
Timeout.timeout(60) do
|
|
1844
1848
|
match = nil
|
|
1845
1849
|
while not match
|
|
1846
|
-
|
|
1850
|
+
# Prefer the ssl status endpoint. PuppetDB's jetty listener is
|
|
1851
|
+
# explicitly configured with `client-auth = want`, not `need`
|
|
1852
|
+
# (see puppet_enterprise::puppetdb::jetty_ini.pp), and
|
|
1853
|
+
# /pdb/meta/v1/version -- like the rest of /status/v1/* -- is
|
|
1854
|
+
# allow-unauthenticated in PuppetDB's auth.conf. So `curl -k`
|
|
1855
|
+
# gets a real, validated response with no client cert needed,
|
|
1856
|
+
# and it's the only path that still works once the cleartext
|
|
1857
|
+
# listener is disabled by default (PE-45384/PE-44906,
|
|
1858
|
+
# SECVULN-1792; PE-45827).
|
|
1859
|
+
output = on(host, "curl -s -k https://localhost:#{ssl_port}/pdb/meta/v1/version", :accept_all_exit_codes => true)
|
|
1847
1860
|
match = output.stdout =~ /version.*\d+\.\d+\.\d+/
|
|
1861
|
+
|
|
1862
|
+
# Fall back to the cleartext port for older or nonstandard
|
|
1863
|
+
# configurations where the ssl endpoint doesn't behave as
|
|
1864
|
+
# above.
|
|
1865
|
+
if !match
|
|
1866
|
+
output = on(host, "curl -s http://localhost:#{nonssl_port}/pdb/meta/v1/version", :accept_all_exit_codes => true)
|
|
1867
|
+
match = output.stdout =~ /version.*\d+\.\d+\.\d+/
|
|
1868
|
+
end
|
|
1869
|
+
|
|
1848
1870
|
sleep 1
|
|
1849
1871
|
end
|
|
1850
1872
|
end
|
data/lib/beaker-pe/version.rb
CHANGED
|
@@ -2663,6 +2663,48 @@ NOASK
|
|
|
2663
2663
|
end
|
|
2664
2664
|
end
|
|
2665
2665
|
|
|
2666
|
+
describe '#check_puppetdb_status_endpoint' do
|
|
2667
|
+
it 'does not do anything if version is less than 2016.1.0' do
|
|
2668
|
+
allow(subject).to receive(:version_is_less).and_return(true)
|
|
2669
|
+
|
|
2670
|
+
expect(subject).not_to receive(:on)
|
|
2671
|
+
subject.check_puppetdb_status_endpoint(unixhost)
|
|
2672
|
+
end
|
|
2673
|
+
|
|
2674
|
+
it 'succeeds via the ssl endpoint alone, without ever falling back to cleartext (PE-45827)' do
|
|
2675
|
+
allow(subject).to receive(:version_is_less).and_return(false)
|
|
2676
|
+
allow(subject).to receive(:sleep)
|
|
2677
|
+
ssl_result = double(Beaker::Result, :stdout => '{"version":"7.12.1"}', :exit_code => 0)
|
|
2678
|
+
expect(subject).to receive(:on).with(anything, %r{-k https://localhost:8081/}, anything).once.and_return(ssl_result)
|
|
2679
|
+
expect(subject).not_to receive(:on).with(anything, %r{http://localhost:8080/}, anything)
|
|
2680
|
+
|
|
2681
|
+
expect { subject.check_puppetdb_status_endpoint(unixhost) }.not_to raise_error
|
|
2682
|
+
end
|
|
2683
|
+
|
|
2684
|
+
context 'when the ssl endpoint never returns valid content (older or nonstandard config)' do
|
|
2685
|
+
it 'falls back to the cleartext endpoint' do
|
|
2686
|
+
allow(subject).to receive(:version_is_less).and_return(false)
|
|
2687
|
+
allow(subject).to receive(:sleep)
|
|
2688
|
+
ssl_result = double(Beaker::Result, :stdout => '', :exit_code => 0)
|
|
2689
|
+
nonssl_result = double(Beaker::Result, :stdout => '{"version":"7.12.1"}', :exit_code => 0)
|
|
2690
|
+
expect(subject).to receive(:on).with(anything, %r{-k https://localhost:8081/}, anything).once.ordered.and_return(ssl_result)
|
|
2691
|
+
expect(subject).to receive(:on).with(anything, %r{http://localhost:8080/}, anything).once.ordered.and_return(nonssl_result)
|
|
2692
|
+
|
|
2693
|
+
expect { subject.check_puppetdb_status_endpoint(unixhost) }.not_to raise_error
|
|
2694
|
+
end
|
|
2695
|
+
end
|
|
2696
|
+
|
|
2697
|
+
context 'when neither endpoint ever returns valid content' do
|
|
2698
|
+
it 'still fails the test, preserving the original PE-14934 race guard' do
|
|
2699
|
+
allow(subject).to receive(:version_is_less).and_return(false)
|
|
2700
|
+
allow(Timeout).to receive(:timeout).and_raise(Timeout::Error)
|
|
2701
|
+
expect(subject).to receive(:fail_test).with('PuppetDB took too long to start')
|
|
2702
|
+
|
|
2703
|
+
subject.check_puppetdb_status_endpoint(unixhost)
|
|
2704
|
+
end
|
|
2705
|
+
end
|
|
2706
|
+
end
|
|
2707
|
+
|
|
2666
2708
|
describe '#get_puppet_agent_version' do
|
|
2667
2709
|
|
|
2668
2710
|
context 'when the puppet_agent version is set on an argument' do
|