summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorSteve Milner <smilner@redhat.com>2017-10-26 20:27:19 -0400
committerSteve Milner <smilner@redhat.com>2017-10-26 20:31:47 -0400
commit999efa7376326fef5a26a60d1873ab4e8795d4a7 (patch)
treef6f0355b994e3f215cb2f1bb1a8b21e7fd9c0864 /roles
parentbe7d536260d562e3fff6d6ebf762f6bc2e4e9879 (diff)
downloadopenshift-999efa7376326fef5a26a60d1873ab4e8795d4a7.tar.gz
openshift-999efa7376326fef5a26a60d1873ab4e8795d4a7.tar.bz2
openshift-999efa7376326fef5a26a60d1873ab4e8795d4a7.tar.xz
openshift-999efa7376326fef5a26a60d1873ab4e8795d4a7.zip
crio: restorcon /var/lib/containers
When using the cri-o system container some items in /var/lib/containers end up having incorrect labels. This runs restorecon -R /var/lib/containers after the system container is installed.
Diffstat (limited to 'roles')
-rw-r--r--roles/docker/tasks/systemcontainer_crio.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/docker/tasks/systemcontainer_crio.yml b/roles/docker/tasks/systemcontainer_crio.yml
index 13bbd359e..ee2048f7a 100644
--- a/roles/docker/tasks/systemcontainer_crio.yml
+++ b/roles/docker/tasks/systemcontainer_crio.yml
@@ -166,6 +166,10 @@
dest: /etc/cni/net.d/openshift-sdn.conf
src: 80-openshift-sdn.conf.j2
+- name: Fix SELinux Permissions on /var/lib/containers
+ command: "restorecon -R /var/lib/containers/"
+ changed_when: false
+
- name: Start the CRI-O service
systemd:
name: "cri-o"