Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to skip the update/reboot on pre-upgraded server #227

Merged
merged 3 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -29,6 +29,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
ansible.builtin.yum_repository:
Expand Down
Loading