Skip to content

Commit

Permalink
[v1.3.1] Fix for containerd in haproxy (#3168)
Browse files Browse the repository at this point in the history
* Fix for containerd in haproxy

* Add changelog

Co-authored-by: Luuk van Venrooij <[email protected]>
  • Loading branch information
rafzei and seriva authored May 27, 2022
1 parent 08bf06e commit f95cf32
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,31 @@
---
- name: Get information on installed packages as facts
package_facts:
manager: auto
when: ansible_facts.packages is undefined

- name: Check containerd.io versions
when:
- ansible_facts.packages['containerd.io'] is defined
block:
- name: Set fact installed containerd.io version
set_fact:
containerd_installed: "{{ ansible_facts.packages['containerd.io'][0].version.split('-')[0] }}"

- name: Print containerd.io versions
debug:
msg:
- "Installed version: {{ containerd_installed }}"
- "Target version: {{ containerd_version }}"

# apt module doesn't support --allow-downgrades so we remove packages as workaround
- name: Remove containerd.io package installed as dependency if they exist
apt:
name: containerd.io
state: absent
when:
- containerd_version is version(containerd_installed, '!=')

- name: Install containerd.io package for Debian family
apt:
update_cache: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
name:
- containerd.io-{{ containerd_version }} # provides "runc"
state: present
allow_downgrade: true
1 change: 1 addition & 0 deletions docs/changelogs/CHANGELOG-1.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- [#3065](https://github.com/epiphany-platform/epiphany/issues/3065) - Flag `delete_os_disk_on_termination` has no effect when removing cluster
- [#3006](https://github.com/epiphany-platform/epiphany/issues/3006) - install 'containerd.io=1.4.12-*' failed, when upgrade from v1.3.0 to 2.0.0dev
- [#3160](https://github.com/epiphany-platform/epiphany/issues/3160) - Upgrade from v1.0.3 LTS to v1.3.1 fails installing docker dependencies on Ubuntu
- [#3164](https://github.com/epiphany-platform/epiphany/issues/3164) - Allow containerd.io package downgrade in haproxy_runc role
- [#3165](https://github.com/epiphany-platform/epiphany/issues/3165) - [CentOS/RHEL] download-requirements.sh fails due to expired certificate

## [1.3.0] 2022-01-19
Expand Down

0 comments on commit f95cf32

Please sign in to comment.