summaryrefslogtreecommitdiffstats
path: root/xci/playbooks/roles/create-nodes/tasks/create_vm.yml
diff options
context:
space:
mode:
authornikoskarandreas <nick@intracom-telecom.com>2019-02-22 13:04:29 +0200
committernikoskarandreas <nick@intracom-telecom.com>2019-08-01 07:13:40 -0400
commit0d6907e04a51aface7ed6cd456f4e20f2d2ad0e2 (patch)
treea3ee23be9aee9cea0032b1df89de01ee486b8728 /xci/playbooks/roles/create-nodes/tasks/create_vm.yml
parent3bfb68f11c8f2579a0daff825fb54c64641a26b0 (diff)
Introduction of Openstack-helm as installer
This patch creates a new installer tree in xci that uses openstack-helm to deploy openstack on a kubernetes cluster. USAGE: Export INSTALLER_TYPE=osh, DEPLOY_SCENARIO=k8-calico-nofeature and XCI_FLAVOR=noha or mini and run xci-deploy.sh as in documentation. deploy-scenario:k8-calico-nofeature installer-type:osh Change-Id: I212f70eb51c2a38c798c11367d2ebb8bf5f4a1de Signed-off-by: nikoskarandreas <nick@intracom-telecom.com>
Diffstat (limited to 'xci/playbooks/roles/create-nodes/tasks/create_vm.yml')
-rw-r--r--xci/playbooks/roles/create-nodes/tasks/create_vm.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/xci/playbooks/roles/create-nodes/tasks/create_vm.yml b/xci/playbooks/roles/create-nodes/tasks/create_vm.yml
index 8934fb6a..ac55bf32 100644
--- a/xci/playbooks/roles/create-nodes/tasks/create_vm.yml
+++ b/xci/playbooks/roles/create-nodes/tasks/create_vm.yml
@@ -2,7 +2,16 @@
- name: "Creating VM"
block:
- set_fact:
- vm_name: "{{ ('kubespray' in installer_type) | ternary(idf.kubespray.hostnames[item.1.name], idf.osa.hostnames[item.1.name]) }}"
+ vm_name: "{{ idf.kubespray.hostnames[item.1.name] }}"
+ when: installer_type == "kubespray"
+
+ - set_fact:
+ vm_name: "{{ idf.osa.hostnames[item.1.name] }}"
+ when: installer_type == "osa"
+
+ - set_fact:
+ vm_name: "{{ idf.osh.hostnames[item.1.name] }}"
+ when: installer_type == "osh"
- set_fact:
vm_log_file: "{{ node_logdir }}/{{ vm_name }}_console.log"