Define ceph cluster members separately for override
PROD-34823
Change-Id: If0052ec49db05a000e27a93370d056251d5eadda
diff --git a/metadata/service/common/cluster.yml b/metadata/service/common/cluster.yml
index 7d98230..cca836c 100644
--- a/metadata/service/common/cluster.yml
+++ b/metadata/service/common/cluster.yml
@@ -5,6 +5,15 @@
ceph_mon_node01_hostname: cmn01
ceph_mon_node02_hostname: cmn02
ceph_mon_node03_hostname: cmn03
+ ceph_cluster_member01:
+ name: ${_param:ceph_mon_node01_hostname}
+ host: ${_param:ceph_mon_node01_address}
+ ceph_cluster_member02:
+ name: ${_param:ceph_mon_node02_hostname}
+ host: ${_param:ceph_mon_node02_address}
+ ceph_cluster_member03:
+ name: ${_param:ceph_mon_node03_hostname}
+ host: ${_param:ceph_mon_node03_address}
ceph:
common:
config:
@@ -14,9 +23,6 @@
version: ${_param:ceph_version}
fsid: ${_param:ceph_cluster_fsid}
members:
- - name: ${_param:ceph_mon_node01_hostname}
- host: ${_param:ceph_mon_node01_ceph_public_address}
- - name: ${_param:ceph_mon_node02_hostname}
- host: ${_param:ceph_mon_node02_ceph_public_address}
- - name: ${_param:ceph_mon_node03_hostname}
- host: ${_param:ceph_mon_node03_ceph_public_address}
+ - ${_param:ceph_cluster_member01}
+ - ${_param:ceph_cluster_member02}
+ - ${_param:ceph_cluster_member03}
diff --git a/metadata/service/common/single.yml b/metadata/service/common/single.yml
index c81947b..d5010f0 100644
--- a/metadata/service/common/single.yml
+++ b/metadata/service/common/single.yml
@@ -3,6 +3,9 @@
parameters:
_param:
ceph_mon_node01_hostname: cmn01
+ ceph_cluster_member01:
+ name: ${_param:ceph_mon_node01_hostname}
+ host: ${_param:ceph_mon_node01_address}
ceph:
common:
config:
@@ -12,5 +15,4 @@
version: ${_param:ceph_version}
fsid: ${_param:ceph_cluster_fsid}
members:
- - name: ${_param:ceph_mon_node01_hostname}
- host: ${_param:ceph_mon_node01_address}
+ - ${_param:ceph_cluster_member01}