Skip to content

Commit

Permalink
Implement a tomcat upgrade workaround for upgrade pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Sep 10, 2023
1 parent 4f8df97 commit bec9463
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pipelines/upgrade/05-server_to_intermediate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
scenario: "{{ pipeline_type }}"
scenario_os: "{{ pipeline_os }}"
scenario_version: "{{ forklift_upgrade_version_intermediate }}"
- role: update_tomcat
when: pipeline_type == 'katello' && ansible_distribution == 'CentOS'
- foreman_server_repositories
- role: foreman_installer
foreman_installer_skip_installer: "{{ true if forklift_upgrade_version_start == forklift_upgrade_version_intermediate else false }}"
17 changes: 17 additions & 0 deletions roles/update_tomcat/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
- name: Set module hotfixes on AppStream
ansible.builtin.lineinfile:
path: /etc/yum.repos.d/CentOS-Stream-AppStream.repo
line: module_hotfixes=1
insertbefore: EOF

- name: Update just tomcat
ansible.builtin.package:
name: tomcat
state: latest

- name: Remove module hotfixes
ansible.builtin.lineinfile:
path: /etc/yum.repos.d/CentOS-Stream-AppStream.repo
line: module_hotfixes=1
state: absent

0 comments on commit bec9463

Please sign in to comment.