Add idf and pdf to the xci-create-virtual.yml 97/62697/3
authorManuel Buil <mbuil@suse.com>
Fri, 21 Sep 2018 09:55:13 +0000 (11:55 +0200)
committerManuel Buil <mbuil@suse.com>
Fri, 21 Sep 2018 13:17:07 +0000 (15:17 +0200)
This patch complements this other:

https://gerrit.opnfv.org/gerrit/#/c/62575/2

We require the pdf and the idf (when doing baremetal) in the create-vm
role, so we should propagate that variable to the playbook that triggers
those roles

Change-Id: I15806d386db4e6b11192829f2dbc61662bffec2b
Signed-off-by: Manuel Buil <mbuil@suse.com>
xci/infra/bifrost/infra-provision.sh
xci/infra/bifrost/playbooks/xci-create-virtual.yml

index 17eb415..ad5b377 100644 (file)
@@ -30,6 +30,8 @@ ansible-playbook ${XCI_ANSIBLE_PARAMS} \
         -e vm_domain_type=${VM_DOMAIN_TYPE} \
         -e baremetal_json_file=/tmp/baremetal.json \
         -e xci_distro=${XCI_DISTRO} \
+        -e pdf_file=${PDF} \
+        -e idf_file=${IDF} \
         ${BIFROST_ROOT_DIR}/playbooks/xci-create-virtual.yml
 
 
index 043907f..bc40d10 100644 (file)
@@ -12,7 +12,8 @@
   name: "Bootstrap XCI hardware resources and prepare provisioning environment"
   gather_facts: yes
   vars_files:
-    - "{{ xci_path }}/xci/var/pdf.yml"
+    - "{{ pdf_file }}"
+    - "{{ idf_file }}"
     - "{{ xci_path }}/xci/var/opnfv_vm.yml"
     - "{{ xci_path }}/xci/var/opnfv.yml"
   pre_tasks: