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