beaker-pe 2.11.20 → 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: 21a476e83cec11a4482e2ef0ad3a98f4ab4c6f8ded3f4f9f29d4bf581a91fb97
4
- data.tar.gz: f0896760878018b6d733d6a6064f502ba25fcaf9b4f4fe5590f02e7e1d7f56a2
3
+ metadata.gz: 527fe6d6360dfb51c8f1e2dbd9f032802b8b41b27f0c46e4ac80e96df585014e
4
+ data.tar.gz: 7c6a69a2b023551ca1332b2319583fba658536194d228fa29478bf33f906b58c
5
5
  SHA512:
6
- metadata.gz: 40f9d7178a59bc28ce4a6faf7df20e0a6bf93d8ddd3a7083a0f82c84a6521d35c1570b6ddf7a8634f36dbc6ea317593f708b12ca6d6f837f6919478cce28e1f3
7
- data.tar.gz: 5fa09470a51a6564a68f37679900ca2567906db681dc36cca687016d1285de6a2e0b324af5242462d9772112ba7d3928402a99130c37749038b2315d8983f80b
6
+ metadata.gz: 1626c5e8d6cabd70eadef2c69262f1c3af5364092abe76f395198726c6aa98c86a273308edb2dbd400b3e77647a75f567bb7551d1c7f7e20cf4ed9e1cee958ed
7
+ data.tar.gz: a9f9764d8fdeaf123d498f90c63b571d7f759ce3b776022640a24dd6e91eefe84d18232ee992ea7cc074694a9c984791e4683f0497b453d34d5d9842fe989611
@@ -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
  #
@@ -726,7 +731,7 @@ module Beaker
726
731
  # waitforlock in case stopping the agent run after stopping the agent service
727
732
  # takes a little longer than usual
728
733
  step "Run puppet to setup mcollective and pxp-agent" do
729
- on(master, puppet_agent('-t --waitforlock 1'), :acceptable_exit_codes => [0,2])
734
+ on(master, puppet_agent("-t #{waitforlock_flag}"), :acceptable_exit_codes => [0,2])
730
735
  end
731
736
 
732
737
  install_agents_only_on(agents, opts)
@@ -977,7 +982,7 @@ module Beaker
977
982
  install_hosts.each do |host|
978
983
  # waitforlock in case stopping the agent run after stopping the agent service
979
984
  # takes a little longer than usual
980
- on host, puppet_agent('-t --waitforlock 1'), :acceptable_exit_codes => [0,2]
985
+ on host, puppet_agent("-t #{waitforlock_flag}"), :acceptable_exit_codes => [0,2]
981
986
 
982
987
  # Workaround for PE-1105 when deploying 3.0.0
983
988
  # The installer did not respect our database host answers in 3.0.0,
@@ -1018,7 +1023,7 @@ module Beaker
1018
1023
  install_hosts.each do |host|
1019
1024
  # waitforlock in case stopping the agent run after stopping the agent service
1020
1025
  # takes a little longer than usual
1021
- on host, puppet_agent('-t --waitforlock 1'), :acceptable_exit_codes => [0,2]
1026
+ on host, puppet_agent("-t #{waitforlock_flag}"), :acceptable_exit_codes => [0,2]
1022
1027
  # To work around PE-14318 if we just ran puppet agent on the
1023
1028
  # database node we will need to wait until puppetdb is up and
1024
1029
  # running before continuing
@@ -2123,7 +2128,7 @@ EOM
2123
2128
  # waitforlock in case stopping the agent run after stopping the agent service
2124
2129
  # takes a little longer than usual
2125
2130
  step "Run puppet on all agent nodes" do
2126
- on agent_nodes, puppet_agent('-t --waitforlock 1'), :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
2127
2132
  end
2128
2133
 
2129
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.20'
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.20
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-09-20 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