Disable rook/ceph for heat based deployments
Current way of configuring rook cluster relies on IDF file which
does not exist for the nodes provisioned using Heat.
Apart from that, heat based deployments contains a jumphost
between the node where the engine is executed and the target
nodes. This makes things even more tricky and requires further
work
Change-Id: I0549a251a7e5376319e749f8fe470cb14d165713
diff --git a/engine/installer/kubespray/playbooks/roles/post-deployment/tasks/main.yml b/engine/installer/kubespray/playbooks/roles/post-deployment/tasks/main.yml
index fc285a4..8850e84 100644
--- a/engine/installer/kubespray/playbooks/roles/post-deployment/tasks/main.yml
+++ b/engine/installer/kubespray/playbooks/roles/post-deployment/tasks/main.yml
@@ -17,11 +17,6 @@
# SPDX-License-Identifier: Apache-2.0
# ============LICENSE_END=========================================================
-- name: Install openshift
- pip:
- name: openshift
- state: present
-
- name: Ensure /home/{{ ansible_env.SUDO_USER }}/.kube folder exists and empty
file:
path: "/home/{{ ansible_env.SUDO_USER }}/.kube"
@@ -39,10 +34,19 @@
owner: "{{ ansible_env.SUDO_USER }}"
mode: 0644
-- name: Install rook cluster
- include_tasks: "configure-rook-cluster.yml"
- vars:
- ansible_become: false
+# TODO: disable rook/ceph for heat based deployments that use jumphosts
+# this requires work to enable it if it is desired to have rook/ceph for heat
+- block:
+ - name: Install openshift
+ pip:
+ name: openshift
+ state: present
+
+ - name: Install rook cluster
+ include_tasks: "configure-rook-cluster.yml"
+ vars:
+ ansible_become: false
+ when: provisioner_type == "bifrost"
- name: Download kubectl and place it to /usr/local/bin
get_url: