diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2017-08-15 13:28:22 -0500 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canonical.com> | 2017-08-15 14:02:27 -0500 |
commit | e9a56336b664f4575194c2317aa747652a2ecb6f (patch) | |
tree | b05ae1c0cd57c9a8d6fcd33f6ee947229895f216 /ci/config_tpl/juju2/bundle_tpl/spaces.yaml | |
parent | dc5adfcfe2f4c2534ad512f8d3b811d86a473089 (diff) |
modified templates and added variable to easlity understand the
templates and added support for multiple networks.
Change-Id: I1074c722c9007bd12c711dbfc58afa1a098d2a17
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/config_tpl/juju2/bundle_tpl/spaces.yaml')
-rw-r--r-- | ci/config_tpl/juju2/bundle_tpl/spaces.yaml | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/ci/config_tpl/juju2/bundle_tpl/spaces.yaml b/ci/config_tpl/juju2/bundle_tpl/spaces.yaml new file mode 100644 index 00000000..63f624f3 --- /dev/null +++ b/ci/config_tpl/juju2/bundle_tpl/spaces.yaml @@ -0,0 +1,62 @@ + + +{% if os.release == 'mitaka' %} + openstack-origin: &openstack-origin distro +{% else %} + openstack-origin: &openstack-origin cloud:{{ ubuntu.release }}-{{ os.release }} +{% endif %} + + openstack-region: &openstack-region {{ os.region }} + worker-multiplier: &worker-multiplier {{ os.api.worker_multiplier }} + data-port: &data-port br-data:{{ opnfv.ext_port }} + + # OAM - Operations, Administration and Maintenance +{% if opnfv.spaces_dict.pxe is defined %} + oam-space: &oam-space oam-space +{% else %} + oam-space: &oam-space internal-api +{% endif %} + + # This is OpenStack Admin network; for adminURL endpoints + admin-space: &admin-space internal-api + + # This is OpenStack Public network; for publicURL endpoints +{% if opnfv.spaces_dict.public is defined %} + public-space: &public-space public-api +{% else %} + public-space: &public-space internal-api +{% endif %} + + # This is OpenStack Internal network; for internalURL endpoints + internal-space: &internal-space internal-api + + # This is the overlay network +{% if opnfv.spaces_dict.data is defined %} + overlay-space: &overlay-space tenant-data +{% else %} + overlay-space: &overlay-space internal-api +{% endif %} + + # CEPH configuration + # CEPH access network + ceph-public-space: &ceph-public-space internal-api + + # CEPH replication network +{% if opnfv.spaces_dict.storage is defined %} + ceph-cluster-space: &ceph-cluster-space storage-cluster +{% else %} + ceph-cluster-space: &ceph-cluster-space internal-api +{% endif %} + + # Workaround for 'only one default binding supported' + oam-space-constr: &oam-space-constr spaces=oam-space + ceph-access-constr: &ceph-access-constr spaces=ceph-access-space + + # CEPH OSD and journal devices; temporary workaround for #1674148 +{% if os.lxd %} + osd-devices: &osd-devices /srv/ceph-osd +{% else %} + osd-devices: &osd-devices {{ opnfv.storage_dict.ceph.disk }} +{% endif %} + osd-journal: &osd-journal + |