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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72a086021092d8858a631836bf5748c9af05c634aaf8f592779f5dd410754297
4
- data.tar.gz: d6550eea50d3e8e0dc8a5d2370ba01ba3b90195a49ede9254e5842c91d15863e
3
+ metadata.gz: 527fe6d6360dfb51c8f1e2dbd9f032802b8b41b27f0c46e4ac80e96df585014e
4
+ data.tar.gz: 7c6a69a2b023551ca1332b2319583fba658536194d228fa29478bf33f906b58c
5
5
  SHA512:
6
- metadata.gz: a074dd641c52eda075571a15c4d3370f2111af27b2c776d4b68d9d236a6c4bee2a702531c062907b2f51a0d48133001065e9b94bda155e4e7a0376b46010c4d2
7
- data.tar.gz: 73a32f29d7a216d9de17e2175b6b77e8938ac414bbcbe1292195069f83274b1649bf79f24634e4526930c0297bea240f1292dc169da9a6b3efd5fe11ccdf95bf
6
+ metadata.gz: 1626c5e8d6cabd70eadef2c69262f1c3af5364092abe76f395198726c6aa98c86a273308edb2dbd400b3e77647a75f567bb7551d1c7f7e20cf4ed9e1cee958ed
7
+ data.tar.gz: a9f9764d8fdeaf123d498f90c63b571d7f759ce3b776022640a24dd6e91eefe84d18232ee992ea7cc074694a9c984791e4683f0497b453d34d5d9842fe989611
data/CODEOWNERS CHANGED
@@ -1,5 +1,5 @@
1
- #This Repository is maintained by both the beaker, installer, and Night's Watch teams, depending on the location of the changes
2
- * @puppetlabs/dio
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/night-s-watch
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('-t'), :acceptable_exit_codes => [0,2])
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
- on host, puppet_agent('-t'), :acceptable_exit_codes => [0,2]
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
- on host, puppet_agent('-t'), :acceptable_exit_codes => [0,2]
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('-t'), :acceptable_exit_codes => [0,2], :run_in_parallel => true
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
@@ -3,7 +3,7 @@ module Beaker
3
3
  module PE
4
4
 
5
5
  module Version
6
- STRING = '2.11.19'
6
+ STRING = '2.11.21'
7
7
  end
8
8
 
9
9
  end
@@ -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.19
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-07-29 00:00:00.000000000 Z
11
+ date: 2022-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec