From 09f525598fa5dcc627019bdc22fc3b73da22f27b Mon Sep 17 00:00:00 2001 From: Mathieu Bridon Date: Fri, 5 Jun 2015 10:50:04 +0200 Subject: [PATCH] distgit: Pretend we're on NFS Staging doesn't use NFS for its lookaside cache, like Prod does. This makes SELinux happier, pretending that staging also is on NFS. --- roles/distgit/tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/distgit/tasks/main.yml b/roles/distgit/tasks/main.yml index bc5b6fc5e9..2c8fc65a66 100644 --- a/roles/distgit/tasks/main.yml +++ b/roles/distgit/tasks/main.yml @@ -262,6 +262,14 @@ - lookaside - selinux +- name: set the SELinux policy for the Lookaside Cache root directory + command: semanage fcontext -a -t nfs_t "/srv/cache(/.*)?" + when: lcachecontext.stdout.find('nfs_t') == -1 and env != "staging" + tags: + - config + - lookaside + - selinux + - name: install the fedora-ca.cert copy: src={{private}}/files/fedora-ca.cert dest=/etc/httpd/conf/cacert.pem