summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/juju2/bundle_tpl/aodh.yaml
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2018-04-11 16:34:01 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2018-04-19 15:11:26 -0500
commit149e7053b83b2236eac66701837c0d183bb25b81 (patch)
tree062b3bb1a428e5c19ce133f70aec1288b978f30e /ci/config_tpl/juju2/bundle_tpl/aodh.yaml
parentc0bc95b384aa0e5a398aa35a300081919898d1da (diff)
added ssl support based on default.
Change-Id: I0198520e43c81d7734bc3b2f4396e55c42d33e5c Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/config_tpl/juju2/bundle_tpl/aodh.yaml')
-rw-r--r--ci/config_tpl/juju2/bundle_tpl/aodh.yaml17
1 files changed, 15 insertions, 2 deletions
diff --git a/ci/config_tpl/juju2/bundle_tpl/aodh.yaml b/ci/config_tpl/juju2/bundle_tpl/aodh.yaml
index 1c297ce2..3402c5e9 100644
--- a/ci/config_tpl/juju2/bundle_tpl/aodh.yaml
+++ b/ci/config_tpl/juju2/bundle_tpl/aodh.yaml
@@ -1,6 +1,6 @@
aodh:
charm: "./{{ ubuntu.release }}/aodh"
- num_units: 1
+ num_units: {{ unit_qty() }}
{% if os.service.bindings %}
bindings:
"": *oam-space
@@ -11,6 +11,19 @@
{% endif %}
options:
openstack-origin: *openstack-origin
+{% if os.ha.mode == 'ha' %}
+ vip: *aodh-vip
+{% endif %}
+{% if os.api.ssl %}
+ ssl_ca: *ssl_ca
+ ssl_cert: *ssl_cert
+ ssl_key: *ssl_key
+ os-public-hostname: *hostname_aodh_public
+ os-internal-hostname: *hostname_aodh_public
+ os-admin-hostname: *hostname_aodh_public
+{% endif %}
to:
- - "lxd:nodes/0"
+{% for unit_id in to_select() %}
+ - "lxd:nodes/{{ unit_id }}"
+{% endfor %}
{# Empty block to avoid bad block trim #}