From: Alfredo Deza Date: Thu, 20 Feb 2014 19:28:24 +0000 (-0500) Subject: create the add.py file for suse X-Git-Tag: v1.4.0~11^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c3ee8cc7fca82eb1743c8809dc0a91a7af1f0700;p=ceph-deploy.git create the add.py file for suse Signed-off-by: Alfredo Deza --- diff --git a/ceph_deploy/hosts/suse/mon/add.py b/ceph_deploy/hosts/suse/mon/add.py new file mode 100644 index 0000000..1f7b249 --- /dev/null +++ b/ceph_deploy/hosts/suse/mon/add.py @@ -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, + ) diff --git a/ceph_deploy/hosts/suse/mon/create.py b/ceph_deploy/hosts/suse/mon/create.py index 0c1316c..a6c4be2 100644 --- a/ceph_deploy/hosts/suse/mon/create.py +++ b/ceph_deploy/hosts/suse/mon/create.py @@ -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,