|
116 | 116 |
|
117 | 117 | # Installer-driven upgrade will de-configure auth access for compilers.
|
118 | 118 | # 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 | + } |
120 | 130 |
|
121 | 131 | # Upgrade the compiler group A targets
|
122 | 132 | run_task('peadm::agent_upgrade', $compiler_m1_targets,
|
|
156 | 166 | # FINALIZE UPGRADE
|
157 | 167 | ###########################################################################
|
158 | 168 |
|
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 |
| - |
169 | 169 | # Ensure Puppet running on all infrastructure targets
|
170 | 170 | run_task('service', $all_targets,
|
171 | 171 | action => 'start',
|
|
0 commit comments