From: Alfredo Deza Date: Thu, 20 Feb 2014 19:24:52 +0000 (-0500) Subject: create the add.py file for fedora X-Git-Tag: v1.4.0~11^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a7a5f12c9fac08a5df3ea6e76d57cd9cd9de9d85;p=ceph-deploy.git create the add.py file for fedora Signed-off-by: Alfredo Deza --- diff --git a/ceph_deploy/hosts/fedora/mon/__init__.py b/ceph_deploy/hosts/fedora/mon/__init__.py index fca0e0d..6c0ee6d 100644 --- a/ceph_deploy/hosts/fedora/mon/__init__.py +++ b/ceph_deploy/hosts/fedora/mon/__init__.py @@ -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 index 0000000..052549c --- /dev/null +++ b/ceph_deploy/hosts/fedora/mon/add.py @@ -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, + )