]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-nfs: add ganesha_t type to selinux
authorDimitri Savineau <dsavinea@redhat.com>
Mon, 6 Jan 2020 14:09:42 +0000 (09:09 -0500)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Wed, 8 Jan 2020 21:23:41 +0000 (16:23 -0500)
Since RHEL 8.1 we need to add the ganesha_t type to the permissive
SELinux list.
Otherwise the nfs-ganesha service won't start.
This was done on RHEL 7 previously and part of the nfs-ganesha-selinux
package on RHEL 8.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1786110
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit d75812529069244734732d05cc5aa3ddbc99b7c5)

roles/ceph-nfs/tasks/ganesha_selinux_fix.yml

index 2d568af0a69026c21317e64b22955f1a4dad9d6c..f739b32d7b0a1978a259b206657aff53eb4c25fe 100644 (file)
       until: result is succeeded
       when: ansible_distribution_major_version == '7'
 
-    - name: add ganesha_t to permissive domain
-      selinux_permissive:
-        name: ganesha_t
-        permissive: true
-      failed_when: false
-      when: ansible_distribution_major_version == '7'
-
-    - name: install nfs-ganesha-selinux on RHEL 8
+    - name: install nfs-ganesha-selinux and python3-policycoreutils on RHEL 8
       package:
-        name: nfs-ganesha-selinux
+        name: ['nfs-ganesha-selinux', 'python3-policycoreutils']
         state: present
       register: result
       until: result is succeeded
       when: ansible_distribution_major_version == '8'
+
+    - name: add ganesha_t to permissive domain
+      selinux_permissive:
+        name: ganesha_t
+        permissive: true
+      failed_when: false