Skip to content

Commit

Permalink
fix-container-selinux-amzn-linux (kubernetes-sigs#11182)
Browse files Browse the repository at this point in the history
  • Loading branch information
yankay authored and Rickkwa committed Jun 26, 2024
1 parent 1f9bf31 commit 5a3c1d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
3 changes: 3 additions & 0 deletions roles/bootstrap-os/tasks/amzn.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
- name: Enable selinux-ng repo for Amazon Linux for container-selinux
command: amazon-linux-extras enable selinux-ng

- name: Enable EPEL repo for Amazon Linux
yum_repository:
name: epel
Expand Down
12 changes: 0 additions & 12 deletions roles/container-engine/cri-o/tasks/setup-amazon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,3 @@
when:
- amzn2_extras_file_stat.stat.exists
- not amzn2_extras_docker_repo.changed

- name: Add container-selinux yum repo
yum_repository:
name: copr:copr.fedorainfracloud.org:lsm5:container-selinux
file: _copr_lsm5-container-selinux.repo
description: Copr repo for container-selinux owned by lsm5
baseurl: https://download.copr.fedorainfracloud.org/results/lsm5/container-selinux/epel-7-$basearch/
gpgcheck: yes
gpgkey: https://download.copr.fedorainfracloud.org/results/lsm5/container-selinux/pubkey.gpg
skip_if_unavailable: yes
enabled: yes
repo_gpgcheck: no

0 comments on commit 5a3c1d3

Please sign in to comment.