Skip to content

Commit

Permalink
Add option to skip the update/reboot on pre-upgraded server (redhat-c…
Browse files Browse the repository at this point in the history
  • Loading branch information
rjo-uk authored and Kaleb Stolee committed Oct 23, 2024
1 parent 9d4635a commit ff17237
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- Add option to skip the initial update and reboot of the pre-upgraded server
1 change: 1 addition & 0 deletions roles/upgrade/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Additionally a list of any non-Red Hat RPM packages that were installed on the s
| async_timeout_maximum | 7200 | Variable used to set the asynchronous task timeout value (in seconds)
| async_poll_interval | 60 | Variable used to set the asynchronous task polling internal value (in seconds)
| check_leapp_analysis_results| true | Allows for running remediation and going straight to upgrade without re-running analysis. |
| pre_upgrade_update | true | Boolean to decide if an update and reboot on the running pre-upgrade operating system will run. |
| post_upgrade_update | true | Boolean to decide if after the upgrade is performed a dnf update will run|
| post_upgrade_unset_release| true | Boolean used to control whether Leapp's RHSM release lock is unset.
| post_upgrade_release | | Optional string used to set a specific RHSM release lock after the Leapp upgrade, but before the final update pass.
Expand Down
1 change: 1 addition & 0 deletions roles/upgrade/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ crypto_policy: DEFAULT

# Whether or not to update from legacy grub to grub2 in post-upgrade steps from RHEL 6 -> 7.
update_grub_to_grub_2: false
pre_upgrade_update: true
post_upgrade_update: true
post_upgrade_unset_release: true
post_upgrade_release: ""
Expand Down
1 change: 1 addition & 0 deletions roles/upgrade/tasks/leapp-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

- name: leapp-upgrade | Include update-and-reboot.yml
ansible.builtin.include_tasks: update-and-reboot.yml
when: pre_upgrade_update | bool

- name: leapp-upgrade | Create /etc/leapp/files/leapp_upgrade_repositories.repo
vars:
Expand Down

0 comments on commit ff17237

Please sign in to comment.