Refactor mongodb classes
Change-Id: Iaadd59e59f5a73be5eb70930d88bdd0769816b2e
Related-PROD: PROD-19892
diff --git a/mongodb/server/cluster.yml b/mongodb/server/cluster.yml
index 02294c4..54dd1bb 100644
--- a/mongodb/server/cluster.yml
+++ b/mongodb/server/cluster.yml
@@ -2,13 +2,13 @@
- service.mongodb.server.cluster
parameters:
_param:
- openstack_telemetry_node01_hostname: mdb01
- openstack_telemetry_node02_hostname: mdb02
- openstack_telemetry_node03_hostname: mdb03
- mongodb_server_replica_set: mongodb
- mongodb_master: ${_param:openstack_telemetry_node01_hostname}
- mongodb_server_members:
- - host: ${_param:openstack_telemetry_node01_hostname}
- priority: 2
- - host: ${_param:openstack_telemetry_node02_hostname}
- - host: ${_param:openstack_telemetry_node03_hostname}
+ mongodb_replica_set: stacklight
+ mongodb:
+ server:
+ replica_set: ${_param:mongodb_replica_set}
+ members:
+ - host: ${_param:cluster_node01_address}
+ priority: 2
+ - host: ${_param:cluster_node02_address}
+ - host: ${_param:cluster_node03_address}
+ master: ${_param:cluster_node01_hostname}
diff --git a/mongodb/server/single.yml b/mongodb/server/single.yml
index c3d6cca..8a08de0 100644
--- a/mongodb/server/single.yml
+++ b/mongodb/server/single.yml
@@ -2,4 +2,4 @@
- service.mongodb.server.single
parameters:
_param:
- mongodb_server_replica_set: ceilometer
+ mongodb_server_replica_set: stacklight