beaker-pe 2.11.19 → 2.11.21
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/CODEOWNERS +3 -3
- data/lib/beaker-pe/install/pe_utils.rb +17 -4
- data/lib/beaker-pe/version.rb +1 -1
- data/spec/beaker-pe/install/pe_utils_spec.rb +1 -0
- 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: 527fe6d6360dfb51c8f1e2dbd9f032802b8b41b27f0c46e4ac80e96df585014e
|
|
4
|
+
data.tar.gz: 7c6a69a2b023551ca1332b2319583fba658536194d228fa29478bf33f906b58c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1626c5e8d6cabd70eadef2c69262f1c3af5364092abe76f395198726c6aa98c86a273308edb2dbd400b3e77647a75f567bb7551d1c7f7e20cf4ed9e1cee958ed
|
|
7
|
+
data.tar.gz: a9f9764d8fdeaf123d498f90c63b571d7f759ce3b776022640a24dd6e91eefe84d18232ee992ea7cc074694a9c984791e4683f0497b453d34d5d9842fe989611
|
data/CODEOWNERS
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
#This Repository is maintained by both the
|
|
2
|
-
*
|
|
1
|
+
#This Repository is maintained by both the release engineering, and installer teams, depending on the location of the changes
|
|
2
|
+
* @puppetlabs/release-engineering
|
|
3
3
|
/lib/beaker-pe/install @puppetlabs/installer-and-management
|
|
4
|
-
/lib/beaker-pe/pe-client-tools @puppetlabs/
|
|
4
|
+
/lib/beaker-pe/pe-client-tools @puppetlabs/installer-and-management
|
|
5
5
|
/spec/beaker-pe/install @puppetlabs/installer-and-management
|
|
@@ -143,6 +143,11 @@ module Beaker
|
|
|
143
143
|
return tlsv1_platforms.any? {|platform_regex| host['platform'] =~ platform_regex}
|
|
144
144
|
end
|
|
145
145
|
|
|
146
|
+
#Return '--waitforlock 1' if the agent is >= 6.16 which was used in 2019.8.0.
|
|
147
|
+
def waitforlock_flag
|
|
148
|
+
version_is_less(master['pe_ver'], '2019.8.0') ? '' : '--waitforlock 1'
|
|
149
|
+
end
|
|
150
|
+
|
|
146
151
|
# Generate the command line string needed to from a frictionless puppet-agent
|
|
147
152
|
# install on this host in a PE environment.
|
|
148
153
|
#
|
|
@@ -723,8 +728,10 @@ module Beaker
|
|
|
723
728
|
configure_puppet_agent_service(:ensure => 'stopped', :enabled => false)
|
|
724
729
|
end
|
|
725
730
|
|
|
731
|
+
# waitforlock in case stopping the agent run after stopping the agent service
|
|
732
|
+
# takes a little longer than usual
|
|
726
733
|
step "Run puppet to setup mcollective and pxp-agent" do
|
|
727
|
-
on(master, puppet_agent(
|
|
734
|
+
on(master, puppet_agent("-t #{waitforlock_flag}"), :acceptable_exit_codes => [0,2])
|
|
728
735
|
end
|
|
729
736
|
|
|
730
737
|
install_agents_only_on(agents, opts)
|
|
@@ -973,7 +980,9 @@ module Beaker
|
|
|
973
980
|
step "First puppet agent run" do
|
|
974
981
|
# Run the agent once to ensure everything is in the dashboard
|
|
975
982
|
install_hosts.each do |host|
|
|
976
|
-
|
|
983
|
+
# waitforlock in case stopping the agent run after stopping the agent service
|
|
984
|
+
# takes a little longer than usual
|
|
985
|
+
on host, puppet_agent("-t #{waitforlock_flag}"), :acceptable_exit_codes => [0,2]
|
|
977
986
|
|
|
978
987
|
# Workaround for PE-1105 when deploying 3.0.0
|
|
979
988
|
# The installer did not respect our database host answers in 3.0.0,
|
|
@@ -1012,7 +1021,9 @@ module Beaker
|
|
|
1012
1021
|
# Now that all hosts are in the dashbaord, run puppet one more
|
|
1013
1022
|
# time to configure mcollective
|
|
1014
1023
|
install_hosts.each do |host|
|
|
1015
|
-
|
|
1024
|
+
# waitforlock in case stopping the agent run after stopping the agent service
|
|
1025
|
+
# takes a little longer than usual
|
|
1026
|
+
on host, puppet_agent("-t #{waitforlock_flag}"), :acceptable_exit_codes => [0,2]
|
|
1016
1027
|
# To work around PE-14318 if we just ran puppet agent on the
|
|
1017
1028
|
# database node we will need to wait until puppetdb is up and
|
|
1018
1029
|
# running before continuing
|
|
@@ -2114,8 +2125,10 @@ EOM
|
|
|
2114
2125
|
stop_agent_on(agent_nodes, :run_in_parallel => true)
|
|
2115
2126
|
end
|
|
2116
2127
|
|
|
2128
|
+
# waitforlock in case stopping the agent run after stopping the agent service
|
|
2129
|
+
# takes a little longer than usual
|
|
2117
2130
|
step "Run puppet on all agent nodes" do
|
|
2118
|
-
on agent_nodes, puppet_agent(
|
|
2131
|
+
on agent_nodes, puppet_agent("-t #{waitforlock_flag}"), :acceptable_exit_codes => [0,2], :run_in_parallel => true
|
|
2119
2132
|
end
|
|
2120
2133
|
|
|
2121
2134
|
#Workaround for windows frictionless install, see BKR-943
|
data/lib/beaker-pe/version.rb
CHANGED
|
@@ -1969,6 +1969,7 @@ describe ClassMixedWithDSLInstallUtils do
|
|
|
1969
1969
|
allow(subject).to receive(:generate_installer_conf_file_for)
|
|
1970
1970
|
allow(subject).to receive(:deploy_frictionless_to_master)
|
|
1971
1971
|
allow(subject).to receive(:install_agents_only_on)
|
|
1972
|
+
allow(subject).to receive(:waitforlock_flag).and_return('')
|
|
1972
1973
|
|
|
1973
1974
|
allow(subject).to receive(:installer_cmd).with(monolithic, anything()).and_return("install master")
|
|
1974
1975
|
allow(subject).to receive(:installer_cmd).with(el_agent, anything()).and_return("install el agent")
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: beaker-pe
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.11.
|
|
4
|
+
version: 2.11.21
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Puppetlabs
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-09-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|