beaker-pe 3.6.1 → 3.6.2

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: dfd1d8c42972081bb9b5f9f49d4f1cefd90424a84594dfdf1c96a136fa48d7d8
4
- data.tar.gz: eff2646196013b1cf2ad368e4a5f4ce3fe4c6d5534dcf5425f5024dc1b508b53
3
+ metadata.gz: 82fe681f6a5d8f304089ca2dca03e4e9080cbf502b0665e072103dac9e9e4aa9
4
+ data.tar.gz: 22f5065db00df1654fdc261de80272b0a3719db9fc6e2027b0f92d3e300f90e8
5
5
  SHA512:
6
- metadata.gz: '069a53cb8696fb530fe31c90cb3820408285a56894bfa62c6677dd4ea89a9e183a74dc1f1771bebb14bd1ec43af32457427d6b712eb5a0587a14e9a251df0efe'
7
- data.tar.gz: f3053f4e7d7a3a1aae929b40448e8c60357e814cd8bedc91a3d165d899932410575f11d02c3ca3f6a3ed65d7b95db32292278abcbb7a035ceca0012ac3a16958
6
+ metadata.gz: bc742e9c75813510b30970550c55ec34c56727e1209e2c8a71ea69c89ff1fe1a67e4abd1e4f98ae39ed5d01140f4ad04b6afd795ed264f9c3fd840c749c9ab9a
7
+ data.tar.gz: 20d4a84d869295af9703cc72e0c2f3f277e8735f0380337f13ea1be23c51a081c6171ae73c5c4edfee98899327490325ed4f5252513b331ff819b968e05c4066
@@ -825,8 +825,10 @@ NOASK
825
825
 
826
826
  install_agents_only_on(agents, opts)
827
827
 
828
+ # waitforlock in case install_agents_only_on triggers a puppet run on the
829
+ # master that is still in progress when we get here
828
830
  step "Run puppet a second time on the primary to populate services.conf (PE-19054)" do
829
- on(master, puppet_agent('-t'), :acceptable_exit_codes => [0,2])
831
+ on(master, puppet_agent("-t #{waitforlock_flag(master)}".rstrip), :acceptable_exit_codes => [0,2])
830
832
  end
831
833
  end
832
834
 
@@ -2102,9 +2104,11 @@ EOM
2102
2104
  stop_agent_on(pe_infrastructure, :run_in_parallel => true)
2103
2105
  end
2104
2106
 
2107
+ # waitforlock in case stopping the agent run after stopping the agent service
2108
+ # takes a little longer than usual
2105
2109
  step "First puppet run on infrastructure + postgres node" do
2106
2110
  [master, database, dashboard, pe_postgres].uniq.each do |host|
2107
- on host, 'puppet agent -t', :acceptable_exit_codes => [0,2]
2111
+ on host, ["puppet agent -t", waitforlock_flag(host)].reject(&:empty?).join(' '), :acceptable_exit_codes => [0,2]
2108
2112
  end
2109
2113
  end
2110
2114
 
@@ -2112,13 +2116,15 @@ EOM
2112
2116
  install_agents_only_on(non_infrastructure, opts)
2113
2117
 
2114
2118
  step "Run puppet to setup mcollective and pxp-agent" do
2115
- on master, 'puppet agent -t', :acceptable_exit_codes => [0,2]
2119
+ on master, ["puppet agent -t", waitforlock_flag(master)].reject(&:empty?).join(' '), :acceptable_exit_codes => [0,2]
2116
2120
  run_puppet_on_non_infrastructure_nodes(non_infrastructure)
2117
2121
  end
2118
2122
 
2119
2123
  end
2124
+ # waitforlock in case install_agents_only_on triggers a puppet run on the
2125
+ # master that is still in progress when we get here
2120
2126
  step "Run puppet a second time on the primary to populate services.conf (PE-19054)" do
2121
- on master, 'puppet agent -t', :acceptable_exit_codes => [0,2]
2127
+ on master, ["puppet agent -t", waitforlock_flag(master)].reject(&:empty?).join(' '), :acceptable_exit_codes => [0,2]
2122
2128
  end
2123
2129
  end
2124
2130
 
@@ -3,7 +3,7 @@ module Beaker
3
3
  module PE
4
4
 
5
5
  module Version
6
- STRING = '3.6.1'
6
+ STRING = '3.6.2'
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.1
4
+ version: 3.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppetlabs
@@ -320,7 +320,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
320
320
  - !ruby/object:Gem::Version
321
321
  version: '0'
322
322
  requirements: []
323
- rubygems_version: 3.6.9
323
+ rubygems_version: 4.0.10
324
324
  specification_version: 4
325
325
  summary: Beaker PE DSL Helpers!
326
326
  test_files: []