Modify Openstack telemetry keepalived instance
Build Openstack telemetry keepalived instance from service metadata
layer. Address, password and interface configure by previous values.
Change-Id: I6f5a1f9c6e9932fab982772de10294f82e09b706
diff --git a/aodh/server/cluster.yml b/aodh/server/cluster.yml
index 4743111..00a8263 100644
--- a/aodh/server/cluster.yml
+++ b/aodh/server/cluster.yml
@@ -1,6 +1,8 @@
classes:
- service.aodh.server.cluster
+- service.haproxy.proxy.single
- system.haproxy.proxy.listen.openstack.aodh
+- system.keepalived.cluster.instance.openstack_telemetry_vip
parameters:
aodh:
server:
diff --git a/ceilometer/server/cluster.yml b/ceilometer/server/cluster.yml
index cfe54f9..11488fb 100644
--- a/ceilometer/server/cluster.yml
+++ b/ceilometer/server/cluster.yml
@@ -1,8 +1,8 @@
classes:
- service.ceilometer.server.cluster
+- service.haproxy.proxy.single
- system.haproxy.proxy.listen.openstack.ceilometer
- system.keepalived.cluster.instance.openstack_telemetry_vip
-- service.haproxy.proxy.single
parameters:
ceilometer:
server:
diff --git a/keepalived/cluster/instance/openstack_telemetry_vip.yml b/keepalived/cluster/instance/openstack_telemetry_vip.yml
index 91155e7..5dc91a1 100644
--- a/keepalived/cluster/instance/openstack_telemetry_vip.yml
+++ b/keepalived/cluster/instance/openstack_telemetry_vip.yml
@@ -1,19 +1,11 @@
-applications:
-- keepalived
classes:
-- service.keepalived.support
+- service.keepalived.cluster.single
parameters:
_param:
keepalived_openstack_telemetry_vip_address: ${_param:cluster_vip_address}
keepalived_openstack_telemetry_vip_password: password
keepalived_openstack_telemetry_vip_interface: eth1
- keepalived:
- cluster:
- enabled: true
- instance:
- openstack_telemetry_vip:
- address: ${_param:keepalived_openstack_telemetry_vip_address}
- password: ${_param:keepalived_openstack_telemetry_vip_password}
- interface: ${_param:keepalived_openstack_telemetry_vip_interface}
- virtual_router_id: 230
- priority: 101
+ keepalived_vip_virtual_router_id: 230
+ keepalived_vip_address: ${_param:keepalived_openstack_telemetry_vip_address}
+ keepalived_vip_password: ${_param:keepalived_openstack_telemetry_vip_password}
+ keepalived_vip_interface: ${_param:keepalived_openstack_telemetry_vip_interface}