|
67 | 67 | $puppetdb_database_replica_target,
|
68 | 68 | ])
|
69 | 69 |
|
| 70 | + message::out(@(EOL)) ###################################################### |
| 71 | + ### UPGRADE STAGE: INFORMATION GATHERING |
| 72 | + | EOL |
| 73 | + |
70 | 74 | # Gather trusted facts from all systems
|
71 | 75 | $cert_extensions = run_task('peadm::trusted_facts', $all_targets).reduce({}) |$memo,$result| {
|
72 | 76 | $memo + { $result.target.name => $result['extensions'] }
|
|
103 | 107 | == $cert_extensions[$master_replica_target[0].name][peadm::oid('peadm_availability_group')])
|
104 | 108 | }
|
105 | 109 |
|
106 |
| - ########################################################################### |
107 |
| - # PREPARATION |
108 |
| - ########################################################################### |
| 110 | + message::out(@(EOL)) ########################################### |
| 111 | + ### UPGRADE STAGE: PREPARATION |
| 112 | + | EOL |
109 | 113 |
|
110 | 114 | # Support for running over the orchestrator transport relies on Bolt being
|
111 | 115 | # executed from the master using the local transport. For now, fail the plan
|
|
137 | 141 | # not all pxp-agents have, the built-in service task does not work over pcp.
|
138 | 142 | run_command('systemctl stop puppet', $all_targets)
|
139 | 143 |
|
140 |
| - ########################################################################### |
141 |
| - # UPGRADE MASTER SIDE |
142 |
| - ########################################################################### |
| 144 | + message::out(@(EOL)) ########################################### |
| 145 | + ### UPGRADE STAGE: UPGRADE MASTER SIDE |
| 146 | + | EOL |
143 | 147 |
|
144 | 148 | # Shut down PuppetDB on CMs that use the PM's PDB PG. Use run_command instead
|
145 | 149 | # of run_task(service, ...) so that upgrading from 2018.1 works over PCP.
|
|
210 | 214 | token_file => $token_file,
|
211 | 215 | )
|
212 | 216 |
|
213 |
| - ########################################################################### |
214 |
| - # UPGRADE REPLICA SIDE |
215 |
| - ########################################################################### |
| 217 | + message::out(@(EOL)) ###################################################### |
| 218 | + ### UPGRADE STAGE: UPGRADE REPLICA SIDE |
| 219 | + | EOL |
216 | 220 |
|
217 | 221 | # Shut down PuppetDB on CMs that use the replica's PDB PG. Use run_command
|
218 | 222 | # instead of run_task(service, ...) so that upgrading from 2018.1 works
|
|
249 | 253 | token_file => $token_file,
|
250 | 254 | )
|
251 | 255 |
|
252 |
| - ########################################################################### |
253 |
| - # FINALIZE UPGRADE |
254 |
| - ########################################################################### |
| 256 | + message::out(@(EOL)) ###################################################### |
| 257 | + ### UPGRADE STAGE: FINALIZE UPGRADE |
| 258 | + | EOL |
255 | 259 |
|
256 | 260 | # Ensure Puppet running on all infrastructure targets
|
257 | 261 | run_task('service', $all_targets,
|
|
0 commit comments