From c3ee8cc7fca82eb1743c8809dc0a91a7af1f0700 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Thu, 20 Feb 2014 14:28:24 -0500 Subject: [PATCH] create the add.py file for suse Signed-off-by: Alfredo Deza --- ceph_deploy/hosts/suse/mon/add.py | 19 +++++++++++++++++++ ceph_deploy/hosts/suse/mon/create.py | 1 - 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 ceph_deploy/hosts/suse/mon/add.py 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, -- 2.47.3