summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorJason DeTiberus <jdetiber@redhat.com>2015-10-16 11:33:28 -0400
committerJason DeTiberus <jdetiber@redhat.com>2015-10-26 15:33:10 -0400
commitdb570ca4fa92560e0ec1b90e1eabe6192f332c61 (patch)
treebacd1b8e237b9fa2c9fcec2a885af0a62937c2bc /roles
parent6e1a53d82f925a3a070eae5342604d8b0f026f38 (diff)
downloadopenshift-db570ca4fa92560e0ec1b90e1eabe6192f332c61.tar.gz
openshift-db570ca4fa92560e0ec1b90e1eabe6192f332c61.tar.bz2
openshift-db570ca4fa92560e0ec1b90e1eabe6192f332c61.tar.xz
openshift-db570ca4fa92560e0ec1b90e1eabe6192f332c61.zip
Install storage plugin dependencies
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_node/tasks/main.yml19
1 files changed, 17 insertions, 2 deletions
diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml
index 98271c8b3..036196d5e 100644
--- a/roles/openshift_node/tasks/main.yml
+++ b/roles/openshift_node/tasks/main.yml
@@ -39,6 +39,15 @@
yum: pkg={{ openshift.common.service_type }}-node{{ openshift_version }},tuned-profiles-{{ openshift.common.service_type }}-node{{ openshift_version }} state=present
register: node_install_result
+# TODO: allow for storage pre-requisites to be optional
+- name: Install storage plugin pre-requisites
+ yum:
+ pkg: "{{ item }}"
+ state: installed
+ with_items:
+ - glusterfs-fuse
+ - ceph-common
+
- name: Install sdn-ovs package
yum: pkg={{ openshift.common.service_type }}-sdn-ovs{{ openshift_version }} state=present
register: sdn_install_result
@@ -124,9 +133,15 @@
notify:
- restart docker
-- name: Allow NFS access for VMs
- seboolean: name=virt_use_nfs state=yes persistent=yes
+- name: Set sebooleans to allow storage plugin access from containers
+ seboolean:
+ name: "{{ item }}"
+ state: yes
+ persistent: yes
when: ansible_selinux and ansible_selinux.status == "enabled"
+ with_items:
+ - virt_use_nfs
+ - virt_use_fusefs
- name: Start and enable node
service: name={{ openshift.common.service_type }}-node enabled=yes state=started