Skip to content

Commit 320b60e

Browse files
authored
Merge pull request #77 from puppetlabs/GH-73
Rework upgrade sequence to support Standard arch
2 parents 71f4572 + 70ea870 commit 320b60e

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Diff for: plans/upgrade.pp

+11-11
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,17 @@
116116

117117
# Installer-driven upgrade will de-configure auth access for compilers.
118118
# Re-run Puppet immediately to fully re-enable
119-
run_task('peadm::puppet_runonce', $puppetdb_database_target)
119+
run_task('peadm::puppet_runonce', [
120+
$master_target,
121+
$puppetdb_database_target,
122+
])
123+
124+
# The master could restart orchestration services again, in which case we
125+
# would have to wait for nodes to reconnect
126+
if $all_targets.any |$target| { $target.protocol == 'pcp' } {
127+
run_task('peadm::orchestrator_healthcheck', $master_target)
128+
wait_until_available($all_targets, wait_time => 120)
129+
}
120130

121131
# Upgrade the compiler group A targets
122132
run_task('peadm::agent_upgrade', $compiler_m1_targets,
@@ -156,16 +166,6 @@
156166
# FINALIZE UPGRADE
157167
###########################################################################
158168

159-
# Run Puppet on the master to finalize central settings
160-
run_task('peadm::puppet_runonce', $master_target)
161-
162-
# The master could restart orchestration services, in which case we would
163-
# have to wait for nodes to reconnect
164-
if $all_targets.any |$target| { $target.protocol == 'pcp' } {
165-
run_task('peadm::orchestrator_healthcheck', $master_target)
166-
wait_until_available($all_targets, wait_time => 120)
167-
}
168-
169169
# Ensure Puppet running on all infrastructure targets
170170
run_task('service', $all_targets,
171171
action => 'start',

0 commit comments

Comments
 (0)