summaryrefslogtreecommitdiffstats
path: root/mcp/patches/reclass-system-salt-model/0003-mongodb-Parameterize-cluster-hostnames.patch
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-12-10 20:24:01 +0100
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-12-11 17:00:54 +0100
commit7d7088ac5cb5dcb20a953dbcf6645e94056a2bf0 (patch)
tree06e21c2ffd36117745c47b9da33d7f2e5259b500 /mcp/patches/reclass-system-salt-model/0003-mongodb-Parameterize-cluster-hostnames.patch
parent9b94e9cdbaa76c39aabd7d6aa5befdce92a66a67 (diff)
[baremetal] cleanup: Parameterize VCP hostnames
We already define the hostnames in a central location (openstack_init), so use the reclass params instead of hardcodes. Also handle hardcoded hostnames in system.haproxy.proxy.listen and system.mongodb.server.cluster. This will also simplify later changes for novcp scenarios. JIRA: FUEL-310 Change-Id: I2a8b4cd1fcb61a7c63f9047123d985bb688dca0a Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'mcp/patches/reclass-system-salt-model/0003-mongodb-Parameterize-cluster-hostnames.patch')
-rw-r--r--mcp/patches/reclass-system-salt-model/0003-mongodb-Parameterize-cluster-hostnames.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/mcp/patches/reclass-system-salt-model/0003-mongodb-Parameterize-cluster-hostnames.patch b/mcp/patches/reclass-system-salt-model/0003-mongodb-Parameterize-cluster-hostnames.patch
new file mode 100644
index 000000000..b75044b16
--- /dev/null
+++ b/mcp/patches/reclass-system-salt-model/0003-mongodb-Parameterize-cluster-hostnames.patch
@@ -0,0 +1,37 @@
+::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+: Copyright (c) 2017 Mirantis Inc., Enea AB and others.
+:
+: All rights reserved. This program and the accompanying materials
+: are made available under the terms of the Apache License, Version 2.0
+: which accompanies this distribution, and is available at
+: http://www.apache.org/licenses/LICENSE-2.0
+::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
+Date: Sun, 10 Dec 2017 21:58:52 +0100
+Subject: [PATCH] mongodb: Parameterize cluster hostnames
+
+Replace mdb{01,02,03} with reclass params, similar to prev commit.
+
+Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
+---
+ mongodb/server/cluster.yml | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/mongodb/server/cluster.yml b/mongodb/server/cluster.yml
+index f3c16d6..1d1e397 100644
+--- a/mongodb/server/cluster.yml
++++ b/mongodb/server/cluster.yml
+@@ -3,9 +3,9 @@ classes:
+ parameters:
+ _param:
+ mongodb_server_replica_set: mongodb
+- mongodb_master: mdb01
++ mongodb_master: ${_param:openstack_telemetry_node01_hostname}
+ mongodb_server_members:
+- - host: mdb01
++ - host: ${_param:openstack_telemetry_node01_hostname}
+ priority: 2
+- - host: mdb02
+- - host: mdb03
++ - host: ${_param:openstack_telemetry_node02_hostname}
++ - host: ${_param:openstack_telemetry_node03_hostname}