]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
create the add.py file for suse
authorAlfredo Deza <alfredo.deza@inktank.com>
Thu, 20 Feb 2014 19:28:24 +0000 (14:28 -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/suse/mon/add.py [new file with mode: 0644]
ceph_deploy/hosts/suse/mon/create.py

diff --git a/ceph_deploy/hosts/suse/mon/add.py b/ceph_deploy/hosts/suse/mon/add.py
new file mode 100644 (file)
index 0000000..1f7b249
--- /dev/null
@@ -0,0 +1,19 @@
+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)
+
+    process.run(
+        distro.conn,
+        [
+            'rcceph',
+            '-c',
+            '/etc/ceph/{cluster}.conf'.format(cluster=args.cluster),
+            'start',
+            'mon.{hostname}'.format(hostname=hostname)
+        ],
+        timeout=7,
+    )
index 0c1316c117be9e3ec0f7503aedc15d5af4be4bfc..a6c4be2b63948045a4c616a16f51f0ecdb210360 100644 (file)
@@ -5,7 +5,6 @@ from ceph_deploy.lib.remoto import process
 def create(distro, args, monitor_keyring):
     hostname = distro.conn.remote_module.shortname()
     common.mon_create(distro, args, monitor_keyring, hostname)
-    service = distro.conn.remote_module.which_service()
 
     process.run(
         distro.conn,