Make daisy template compatible with lf-pod4 75/41375/1
authorAlex Yang <yangyang1@zte.com.cn>
Fri, 8 Sep 2017 07:36:27 +0000 (15:36 +0800)
committerAlex Yang <yangyang1@zte.com.cn>
Fri, 8 Sep 2017 07:36:27 +0000 (15:36 +0800)
Now the daisy template is not compatible with lf-pod4, see [1].
The meaning of 'interfaces' in this pod is different with other pods.
Make daisy template compatible with it.

[1] https://build.opnfv.org/ci/job/validate-jinja2-templates-master/80/console

Change-Id: I29058f705bab333c48614b7eab8c8b9e83b9e1cb
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
installers/daisy/pod_config.yaml.j2

index 39be297..9a4ac7b 100644 (file)
@@ -43,5 +43,9 @@ hosts:
 disks:
   daisy: 50
 daisy_passwd: 'r00tme'
+{% if 'fixed_ips' in conf['jumphost'] -%}
+daisy_gateway: {{ conf['jumphost']['fixed_ips']['admin'] }}
+{%- else -%}
 daisy_gateway: {{ conf['jumphost']['interfaces'][0]['address'][0] }}
+{%- endif %}
 ceph_disk_name: '/dev/sdb'