]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
create the add.py file for fedora
authorAlfredo Deza <alfredo.deza@inktank.com>
Thu, 20 Feb 2014 19:24:52 +0000 (14:24 -0500)
committerAlfredo Deza <alfredo.deza@inktank.com>
Fri, 21 Feb 2014 14:46:44 +0000 (09:46 -0500)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/hosts/fedora/mon/__init__.py
ceph_deploy/hosts/fedora/mon/add.py [new file with mode: 0644]

index fca0e0d521a26be2915e0ab93a2e562d4fd20a24..6c0ee6d99aaefa8e214e926e9ebd43127853fe69 100644 (file)
@@ -1 +1,2 @@
+from add import add
 from create import create
diff --git a/ceph_deploy/hosts/fedora/mon/add.py b/ceph_deploy/hosts/fedora/mon/add.py
new file mode 100644 (file)
index 0000000..052549c
--- /dev/null
@@ -0,0 +1,21 @@
+from ceph_deploy.hosts import common
+from ceph_deploy.lib.remoto import process
+
+
+def add(distro, args, monitor_keyring):
+    hostname = distro.conn.remote_module.shortname()
+    common.mon_add(distro, args, monitor_keyring, hostname)
+    service = distro.conn.remote_module.which_service()
+
+    process.run(
+        distro.conn,
+        [
+            service,
+            'ceph',
+            '-c',
+            '/etc/ceph/{cluster}.conf'.format(cluster=args.cluster),
+            'start',
+            'mon.{hostname}'.format(hostname=hostname)
+        ],
+        timeout=7,
+    )