mirror of
https://github.com/ceph/ceph
synced 2025-02-22 18:47:18 +00:00
configure mds's with -s suffix as standby
This commit is contained in:
parent
5015b90697
commit
573c9ff2b4
@ -116,6 +116,12 @@ def skeleton_config(roles, ips):
|
||||
for role, addr in mons.iteritems():
|
||||
conf.setdefault(role, {})
|
||||
conf[role]['mon addr'] = addr
|
||||
# set up standby mds's
|
||||
for roles in roles:
|
||||
for role in roles:
|
||||
if role.startswith('mds.') and role.endswith('-s'):
|
||||
conf.setdefault(role, {})
|
||||
conf[role]['mds standby for name'] = role[:-2]
|
||||
return conf
|
||||
|
||||
def roles_of_type(roles_for_host, type_):
|
||||
|
Loading…
Reference in New Issue
Block a user