write fsid to ceph.conf

This commit is contained in:
Paul Collins 2012-10-03 21:19:14 +13:00
parent f9de3aa4d8
commit 75d8f0feef
3 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,8 @@ def install():
def emit_cephconf():
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:

View File

@ -1 +1 @@
33
34

View File

@ -2,6 +2,7 @@
auth supported = none
keyring = /etc/ceph/$cluster.$name.keyring
mon host = {{ mon_hosts }}
fsid = {{ fsid }}
[mon]
keyring = /var/lib/ceph/mon/$cluster-$id/keyring