Explorar el Código

Bug 1282336 - Add additional seboolean for gluster

- Added setting seboolean for virt_sandbox_use_fusefs
- Added a failed_when to not fail if virt_sandbox_use_fusefs does not exist
Jason DeTiberus hace 9 años
padre
commit
3fc9adb0c2
Se han modificado 1 ficheros con 7 adiciones y 2 borrados
  1. 7 2
      roles/openshift_node/tasks/storage_plugins/glusterfs.yml

+ 7 - 2
roles/openshift_node/tasks/storage_plugins/glusterfs.yml

@@ -4,9 +4,14 @@
     pkg: glusterfs-fuse
     state: installed
 
-- name: Set seboolean to allow gluster storage plugin access from containers
+- name: Set sebooleans to allow gluster storage plugin access from containers
   seboolean:
-    name: virt_use_fusefs
+    name: "{{ item }}"
     state: yes
     persistent: yes
   when: ansible_selinux and ansible_selinux.status == "enabled"
+  with_items:
+  - virt_use_fusefs
+  - virt_sandbox_use_fusefs
+  register: sebool_result
+  failed_when: "'state' not in sebool_result and 'msg' in sebool_result and 'SELinux boolean item does not exist' not in sebool_result.msg"