]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
add a new --fsid option for new 211/head
authorAlfredo Deza <alfredo.deza@inktank.com>
Thu, 10 Jul 2014 20:35:10 +0000 (16:35 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Thu, 10 Jul 2014 20:35:10 +0000 (16:35 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/new.py

index 3af1403825be3edf787d3270557821cb779caa17..a55d40b1f64240ceda7606ea6c58b7bb67a028a5 100644 (file)
@@ -80,7 +80,7 @@ def new(args):
     cfg = conf.ceph.CephConf()
     cfg.add_section('global')
 
-    fsid = uuid.uuid4()
+    fsid = args.fsid or uuid.uuid4()
     cfg.set('global', 'fsid', str(fsid))
 
     mon_initial_members = []
@@ -176,6 +176,12 @@ def make(parser):
         help='do not attempt to copy SSH keys',
     )
 
+    parser.add_argument(
+        '--fsid',
+        dest='fsid',
+        help='provide an alternate FSID for ceph.conf generation',
+    )
+
     parser.set_defaults(
         func=new,
         )