Browse Source

v3_0_to_v3_1_upgrade: Copy tasks rather than including from the playbook

As suggested, this should help decouple the upgrade from the config
Samuel Munilla 9 years ago
parent
commit
ce5a1411de
1 changed files with 19 additions and 2 deletions
  1. 19 2
      playbooks/common/openshift-cluster/upgrades/v3_0_to_v3_1/upgrade.yml

+ 19 - 2
playbooks/common/openshift-cluster/upgrades/v3_0_to_v3_1/upgrade.yml

@@ -398,8 +398,25 @@
   - name: Ensure node service enabled
     service: name="{{ openshift.common.service_type }}-node" state=started enabled=yes
 
-  - name: Additional storage plugin configuration
-    include: ../../../../../roles/openshift_node/tasks/storage_plugins/main.yml
+  - name: Install Ceph storage plugin dependencies
+    action: "{{ ansible_pkg_mgr }} name=ceph-common state=present"
+    when: not openshift.common.is_atomic | bool
+
+  - 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"
 
   - set_fact:
       node_update_complete: True