|
60 | 60 | # 2. A later group is a linux router. In this instance maybe the patching of the linux router |
61 | 61 | # affects the reachability of previous hosts. |
62 | 62 | # |
| 63 | +# @param [Integer] disconnect_wait How long (in seconds) to wait before checking whether the server has rebooted. Defaults to 10. |
| 64 | +# |
63 | 65 | # @param [Optional[String]] snapshot_plan |
64 | 66 | # Name of the plan to use for executing snaphot creation and deletion steps of the workflow |
65 | 67 | # You can also pass `'disabled'` or `undef'` as an easy way to disable both creation and deletion. |
|
120 | 122 | Optional[Enum['only_required', 'never', 'always']] $reboot_strategy = undef, |
121 | 123 | Optional[String] $reboot_message = undef, |
122 | 124 | Optional[Integer] $reboot_wait = undef, |
| 125 | + Optional[Integer] $disconnect_wait = undef, |
123 | 126 | Optional[String] $snapshot_plan = undef, |
124 | 127 | Optional[Boolean] $snapshot_create = undef, |
125 | 128 | Optional[Boolean] $snapshot_delete = undef, |
|
194 | 197 | $snapshot_delete_group = pick($snapshot_delete, |
195 | 198 | $group_vars['patching_snapshot_delete'], |
196 | 199 | true) |
| 200 | + $disconnect_wait_group = pick($disconnect_wait, |
| 201 | + $group_vars['patching_disconnect_wait'], |
| 202 | + 10) |
197 | 203 |
|
198 | 204 | # do normal patching |
199 | 205 |
|
|
257 | 263 |
|
258 | 264 | ## Check if reboot required and reboot if true. |
259 | 265 | run_plan('patching::reboot_required', $update_ok_targets, |
260 | | - strategy => $reboot_strategy_group, |
261 | | - message => $reboot_message_group, |
262 | | - wait => $reboot_wait_group, |
263 | | - noop => $noop) |
| 266 | + strategy => $reboot_strategy_group, |
| 267 | + message => $reboot_message_group, |
| 268 | + wait => $reboot_wait_group, |
| 269 | + disconnect_wait => $disconnect_wait_group, |
| 270 | + noop => $noop) |
264 | 271 |
|
265 | 272 | ## Remove VM snapshots |
266 | 273 | if $snapshot_delete_group and $snapshot_plan_group and $snapshot_plan_group != 'disabled' { |
|
0 commit comments