Fix bug for baremetal deployments 89/68389/2
authorManuel Buil <mbuil@suse.com>
Thu, 22 Aug 2019 16:06:59 +0000 (18:06 +0200)
committerManuel Buil <mbuil@suse.com>
Thu, 22 Aug 2019 16:08:35 +0000 (18:08 +0200)
OSH cannot be deployed because the name is currently a string instead of
a variable that should be interpreted by ansible

deploy-scenario:k8-calico-nofeature
installer-type:osh

Change-Id: Ib0ec71d181d62ee1830861427ca6d4f64625fb4e
Signed-off-by: Manuel Buil <mbuil@suse.com>
xci/playbooks/roles/create-nodes/tasks/baremetalhoststojson.yml

index 740bfac..ef6ec34 100644 (file)
   block:
 
   - set_fact:
-      node_name: idf.kubespray.hostnames[item.name]
+      node_name: "{{ idf.kubespray.hostnames[item.name] }}"
     when: installer_type == "kubespray"
 
   - set_fact:
-      node_name: idf.osa.hostnames[item.name]
+      node_name: "{{ idf.osa.hostnames[item.name] }}"
     when: installer_type == "osa"
 
   - set_fact:
-      node_name: idf.osh.hostnames[item.name]
+      node_name: "{{ idf.osh.hostnames[item.name] }}"
     when: installer_type == "osh"
 
   - set_fact: