summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/bundle_tpl/bundle.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'ci/config_tpl/bundle_tpl/bundle.yaml')
-rw-r--r--ci/config_tpl/bundle_tpl/bundle.yaml24
1 files changed, 24 insertions, 0 deletions
diff --git a/ci/config_tpl/bundle_tpl/bundle.yaml b/ci/config_tpl/bundle_tpl/bundle.yaml
index 8c08c1a2..a5aa5578 100644
--- a/ci/config_tpl/bundle_tpl/bundle.yaml
+++ b/ci/config_tpl/bundle_tpl/bundle.yaml
@@ -9,9 +9,27 @@
openstack-phase1:
services:
+{% if os.hyperconverged %}
nodes:
charm: "cs:{{ ubuntu.release }}/ubuntu"
num_units: {{ opnfv.units }}
+{% else %}
+ nodes:
+ charm: "cs:{{ ubuntu.release }}/ubuntu"
+{% if os.ha.mode == 'ha' %}
+ num_units: 3
+{% else %}
+ num_units: 1
+{% endif %}
+ constraints: tags=control
+ nodes-compute:
+ charm: "cs:{{ ubuntu.release }}/ubuntu"
+{% if os.ha.mode == 'ha' %}
+ num_units: {{ opnfv.units - 3 }}
+{% else %}
+ num_units: {{ opnfv.units - 1 }}
+{% endif %}
+{% endif %}
ntp:
charm: "local:{{ ubuntu.release }}/ntp"
{% if os.network.controller == 'ocl' %}
@@ -46,8 +64,14 @@ openstack-phase1:
{% include 'haclusters.yaml' %}
{% endif %}
+{% if os.hyperconverged %}
relations:
- [ 'ntp:juju-info', 'nodes:juju-info' ]
+{% else %}
+ relations:
+ - [ 'ntp:juju-info', 'nodes:juju-info' ]
+ - [ 'ntp:juju-info', 'nodes-compute:juju-info' ]
+{% endif %}
{% if os.ha.mode == 'ha' %}
{% include 'harelations.yaml' %}
{% endif %}