move to master branch of charm for few bug fixes.
[joid.git] / ci / config_tpl / deployconfig.yaml
index 3bc2ebc..ead9ca1 100644 (file)
@@ -3,15 +3,21 @@ opnfv:
   admNetgway: {{ opnfv.spaces_dict.admin.gateway }}
   admNetwork: {{ net_prefix }}2
   admin_password: openstack
+{% if opnfv.storage_dict.ceph is defined %}
   ceph-disk: {{ opnfv.storage_dict.ceph.disk }}
+{% endif %}
+{% if opnfv.spaces_dict.data is defined %}
   dataNetwork: {{ opnfv.spaces_dict.data.cidr }}
+{% endif %}
   domain: {{ lab.racks[0].osdomainname }}
   ext-port: {{ lab.racks[0]['ext-port'] }}
   ext_port: {{ lab.racks[0]['ext-port'] }}
   floating-ip-range: {{ lab.racks[0]['floating-ip-range'] }}
   interface-enable: {{ lab.racks[0].ifnamelist }}
   os-domain-name: {{ lab.racks[0].osdomainname }}
-  publicNetwork: {{ opnfv.spaces_dict.public.cidr if 'public' in opnfv.spaces_dict else '' }}
+{% if opnfv.spaces_dict.public is defined %}
+  publicNetwork: {{ opnfv.spaces_dict.public.cidr }}
+{% endif %}
   spaces:
 {% for net in opnfv.spaces %}
   - bridge: {{ net.bridge }}
@@ -25,7 +31,9 @@ opnfv:
   - disk: {{ storage.disk }}
     type: {{ storage.type }}
 {% endfor %}
-  storageNetwork: {{ opnfv.spaces_dict.storage.cidr if 'storage' in opnfv.spaces_dict else '' }}
+{% if opnfv.spaces_dict.storage is defined %}
+  storageNetwork: {{ opnfv.spaces_dict.storage.cidr }}
+{% endif %}
   units: {{ lab.racks[0].nodes|count }}
   vip:
     ceilometer: {{ net_prefix }}24