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 selinux-ng repo in amazon linux to install container-selinux #11182

Merged
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
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