[octavia] Define DB/AMQP service endpoints
Override octavia database/message endpoints defined at service level.
Change-Id: I023be13275789611c9cff4c0dffcf802aedf295f
Closes-Bug: PROD-19376
diff --git a/octavia/api/cluster.yml b/octavia/api/cluster.yml
index 75a4c19..958f3d4 100644
--- a/octavia/api/cluster.yml
+++ b/octavia/api/cluster.yml
@@ -2,8 +2,17 @@
- service.octavia.api.cluster
- system.haproxy.proxy.listen.openstack.octavia
parameters:
+ _param:
+ cluster_internal_protocol: 'http'
octavia:
api:
enabled: true
bind:
address: ${_param:cluster_local_address}
+ database:
+ host: ${_param:openstack_database_address}
+ identity:
+ region: ${_param:openstack_region}
+ protocol: ${_param:cluster_internal_protocol}
+ message_queue:
+ host: ${_param:openstack_message_queue_address}
diff --git a/octavia/api/single.yml b/octavia/api/single.yml
index 685c4b4..a9d30a5 100644
--- a/octavia/api/single.yml
+++ b/octavia/api/single.yml
@@ -1,8 +1,17 @@
classes:
- service.octavia.api.single
parameters:
+ _param:
+ internal_protocol: 'http'
octavia:
api:
enabled: true
bind:
address: ${_param:single_address}
+ database:
+ host: ${_param:openstack_database_address}
+ identity:
+ region: ${_param:openstack_region}
+ protocol: ${_param:internal_protocol}
+ message_queue:
+ host: ${_param:openstack_message_queue_address}