modfiied to support the new spaces in juju.
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / congress.yaml
1     congress:
2       charm: "./{{ ubuntu.release }}/congress"
3       num_units: 1
4 {% if os.service.bindings %}
5       bindings:
6         internal: internal-api
7 {% if opnfv.spaces_dict.data is defined %}
8         admin: admin-api
9 {% else %}
10         admin: internal-api
11 {% endif %}
12 {% if opnfv.spaces_dict.public is defined %}
13         public: public-api
14 {% else %}
15         public: internal-api
16 {% endif %}
17 {% endif %}
18       options:
19         region: {{ os.region }}
20 {% if ubuntu.release == 'trusty' %}
21         source-branch: "stable/{{ os.release  }}"
22 {% endif %}
23       to:
24         - "lxd:nodes/0"
25 {# Empty block to avoid bad block trim #}