[baremetal] cleanup: Parameterize VCP hostnames
[fuel.git] / mcp / patches / reclass-system-salt-model / 0003-mongodb-Parameterize-cluster-hostnames.patch
1 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
2 : Copyright (c) 2017 Mirantis Inc., Enea AB and others.
3 :
4 : All rights reserved. This program and the accompanying materials
5 : are made available under the terms of the Apache License, Version 2.0
6 : which accompanies this distribution, and is available at
7 : http://www.apache.org/licenses/LICENSE-2.0
8 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
9 From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
10 Date: Sun, 10 Dec 2017 21:58:52 +0100
11 Subject: [PATCH] mongodb: Parameterize cluster hostnames
12
13 Replace mdb{01,02,03} with reclass params, similar to prev commit.
14
15 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
16 ---
17  mongodb/server/cluster.yml | 8 ++++----
18  1 file changed, 4 insertions(+), 4 deletions(-)
19
20 diff --git a/mongodb/server/cluster.yml b/mongodb/server/cluster.yml
21 index f3c16d6..1d1e397 100644
22 --- a/mongodb/server/cluster.yml
23 +++ b/mongodb/server/cluster.yml
24 @@ -3,9 +3,9 @@ classes:
25  parameters:
26    _param:
27      mongodb_server_replica_set: mongodb
28 -    mongodb_master: mdb01
29 +    mongodb_master: ${_param:openstack_telemetry_node01_hostname}
30      mongodb_server_members:
31 -    - host: mdb01
32 +    - host: ${_param:openstack_telemetry_node01_hostname}
33        priority: 2
34 -    - host: mdb02
35 -    - host: mdb03
36 +    - host: ${_param:openstack_telemetry_node02_hostname}
37 +    - host: ${_param:openstack_telemetry_node03_hostname}