Skip to content

Commit 70ea870

Browse files
committed
Rework upgrade sequence to support Standard arch
Previously, when upgrading a standard architecture deployment, after the master runs the puppet-enterprise-installer script auth for compilers needs to be restored by a puppet agent run. However, the upgrade plan only performed a run on the dedicated database host, which doesn't exist in a standard install (the databases are all on the master). This commit reworks the upgrade sequence such that the master and replica recieve puppet runs at the appropriate points, along with the database targets, to ensure that regardless of which node the database(s) are located on the node will have a Puppet run to finalize its config before upgrade moves on to the compilers. Fixes #73
1 parent 71f4572 commit 70ea870

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

plans/upgrade.pp

Lines changed: 11 additions & 11 deletions
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)