summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/tasks/storage_plugins/glusterfs.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/openshift_node/tasks/storage_plugins/glusterfs.yml')
-rw-r--r--roles/openshift_node/tasks/storage_plugins/glusterfs.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/openshift_node/tasks/storage_plugins/glusterfs.yml b/roles/openshift_node/tasks/storage_plugins/glusterfs.yml
new file mode 100644
index 000000000..8fc8497fa
--- /dev/null
+++ b/roles/openshift_node/tasks/storage_plugins/glusterfs.yml
@@ -0,0 +1,16 @@
+---
+- name: Install GlusterFS storage plugin dependencies
+ action: "{{ ansible_pkg_mgr }} name=glusterfs-fuse state=present"
+ when: not openshift.common.is_atomic | bool
+
+- name: Set sebooleans to allow gluster storage plugin access from containers
+ seboolean:
+ 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"