summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorJason DeTiberus <jdetiber@redhat.com>2015-11-16 11:24:56 -0500
committerJason DeTiberus <jdetiber@redhat.com>2015-11-16 11:25:02 -0500
commit3fc9adb0c2f2519dbab60ade72e02d90669a1980 (patch)
tree0486b60738d5f7ceba89b791235ebc22ce0dfb5e /roles
parentf33f2d789c58e334449060ce532d7a2785f79e7c (diff)
downloadopenshift-3fc9adb0c2f2519dbab60ade72e02d90669a1980.tar.gz
openshift-3fc9adb0c2f2519dbab60ade72e02d90669a1980.tar.bz2
openshift-3fc9adb0c2f2519dbab60ade72e02d90669a1980.tar.xz
openshift-3fc9adb0c2f2519dbab60ade72e02d90669a1980.zip
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
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_node/tasks/storage_plugins/glusterfs.yml9
1 files changed, 7 insertions, 2 deletions
diff --git a/roles/openshift_node/tasks/storage_plugins/glusterfs.yml b/roles/openshift_node/tasks/storage_plugins/glusterfs.yml
index b812e81df..5cd4a6041 100644
--- a/roles/openshift_node/tasks/storage_plugins/glusterfs.yml
+++ b/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"