removing the public gateway addition code as it was added because
[joid.git] / ci / config_tpl / juju2 / deployconfig.yaml
1 opnfv-{{ lab.location }}{{ lab.racks[0].rack }}-maas:
2 opnfv:
3 {% set net_prefix = opnfv.spaces_dict.admin.cidr[:-4] %}
4   admNetgway: {{ opnfv.spaces_dict.admin.gateway }}
5   admNetwork: {{ net_prefix }}2
6   admin_password: openstack
7   ip_address: {{ os.brAdmIP }}
8   maas_name: {{ lab.location }}{{ lab.racks[0].rack }}
9   main_archive: http://archive.ubuntu.com/ubuntu
10   upstream_dns: {{ lab.racks[0].dns }}
11 {% if opnfv.storage_dict.ceph is defined %}
12   ceph-disk: {{ opnfv.storage_dict.ceph.disk }}
13 {% endif %}
14 {% if opnfv.spaces_dict.data is defined %}
15 {% set netdata_prefix = opnfv.spaces_dict.data.cidr[:-4] %}
16   dataNetwork: {{ opnfv.spaces_dict.data.cidr }}
17 {% endif %}
18   ext-port: {{ lab.racks[0]['ext-port'] }}
19   ext_port: {{ lab.racks[0]['ext-port'] }}
20   floating-ip-range: {{ lab.racks[0]['floating-ip-range'] }}
21   interface-enable: {{ lab.racks[0].ifnamelist }}
22 {% if opnfv.spaces_dict.public is defined %}
23 {% set netpublic_prefix = opnfv.spaces_dict.public.cidr[:-4] %}
24   publicNetwork: {{ opnfv.spaces_dict.public.cidr }}
25 {% endif %}
26   spaces:
27 {% for net in opnfv.spaces %}
28   - bridge: {{ net.bridge }}
29     cidr: {{ net.cidr }}
30     gateway: {{ net.gateway or '' }}
31     type: {{ net.type }}
32     vlan: {{ net.vlan or '' }}
33 {% endfor %}
34   storage:
35 {% for storage in opnfv.storage %}
36   - disk: {{ storage.disk }}
37     type: {{ storage.type }}
38 {% endfor %}
39 {% if opnfv.spaces_dict.storage is defined %}
40   storageNetwork: {{ opnfv.spaces_dict.storage.cidr }}
41 {% endif %}
42   units: {{ lab.racks[0].nodes|count }}
43   vip:
44 {% if opnfv.spaces_dict.public is defined %}
45     ceilometer: {{ netpublic_prefix }}24 {{ net_prefix }}24
46     cinder: {{ netpublic_prefix }}29 {{ net_prefix }}29
47     dashboard: {{ netpublic_prefix }}21 {{ net_prefix }}21
48     glance: {{ netpublic_prefix }}22 {{ net_prefix }}22
49     heat: {{ netpublic_prefix }}28 {{ net_prefix }}28
50     keystone: {{ netpublic_prefix }}23 {{ net_prefix }}23
51     mysql: {{ net_prefix }}25
52     neutron: {{ netpublic_prefix }}27 {{ net_prefix }}27
53     nova: {{ netpublic_prefix }}26 {{ net_prefix }}26
54 {% else %}
55     ceilometer: {{ net_prefix }}24
56     cinder: {{ net_prefix }}29
57     dashboard: {{ net_prefix }}21
58     glance: {{ net_prefix }}22
59     heat: {{ net_prefix }}28
60     keystone: {{ net_prefix }}23
61     mysql: {{ net_prefix }}25
62     neutron: {{ net_prefix }}27
63     nova: {{ net_prefix }}26
64 {% endif %}