Skip to content

Commit

Permalink
Merge pull request #76 from dcos/bug/COPS-5597
Browse files Browse the repository at this point in the history
preinstall containerd.io to avoid kmem bug on >=containerd.io-1.2.10
  • Loading branch information
Jan Ulferts authored Nov 19, 2019
2 parents cf28e30 + dc20495 commit 3d4449e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions roles/dcos_requirements/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@
gpgkey: https://download.docker.com/linux/centos/gpg
when: ansible_distribution == 'CentOS' and yum_list_docker.results | selectattr("yumstate", "match", "installed") | list | length == 0

- name: "Preinstall containerd.io for docker-ce on CentOS preventing kmem bug"
yum:
name: "{{ dcos_containerd_pkg_name }}"
update_cache: true
state: present
when: ansible_distribution == 'CentOS' and yum_list_docker.results | selectattr("yumstate", "match", "installed") | list | length == 0

- block:
- name: "Finding RHEL extras repository name (Only EL systems)"
shell: |
Expand Down
1 change: 1 addition & 0 deletions roles/dcos_requirements/vars/CentOS7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ dcos_timesync: True
cloud_time_sync_package: chrony
onprem_time_sync_package: ntp
dcos_docker_pkg_name: docker-ce-18.09.2
dcos_containerd_pkg_name: containerd.io-1.2.6
dcos_prereq_packages:
- tar
- xz
Expand Down

0 comments on commit 3d4449e

Please sign in to comment.