write fsid to ceph.conf
This commit is contained in:
parent
f9de3aa4d8
commit
75d8f0feef
|
@ -25,7 +25,8 @@ def install():
|
||||||
|
|
||||||
def emit_cephconf():
|
def emit_cephconf():
|
||||||
cephcontext = {
|
cephcontext = {
|
||||||
'mon_hosts': ' '.join(get_mon_hosts())
|
'mon_hosts': ' '.join(get_mon_hosts().sort()),
|
||||||
|
'fsid': utils.config_get('fsid'),
|
||||||
}
|
}
|
||||||
|
|
||||||
with open('/etc/ceph/ceph.conf', 'w') as cephconf:
|
with open('/etc/ceph/ceph.conf', 'w') as cephconf:
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
auth supported = none
|
auth supported = none
|
||||||
keyring = /etc/ceph/$cluster.$name.keyring
|
keyring = /etc/ceph/$cluster.$name.keyring
|
||||||
mon host = {{ mon_hosts }}
|
mon host = {{ mon_hosts }}
|
||||||
|
fsid = {{ fsid }}
|
||||||
|
|
||||||
[mon]
|
[mon]
|
||||||
keyring = /var/lib/ceph/mon/$cluster-$id/keyring
|
keyring = /var/lib/ceph/mon/$cluster-$id/keyring
|
||||||
|
|
Loading…
Reference in New Issue