]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
make all distros use the new get_connection helper 76/head
authorAlfredo Deza <alfredo.deza@inktank.com>
Thu, 12 Sep 2013 18:56:40 +0000 (14:56 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Thu, 12 Sep 2013 18:56:40 +0000 (14:56 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/hosts/centos/mon/create.py
ceph_deploy/hosts/debian/mon/create.py
ceph_deploy/hosts/fedora/mon/create.py
ceph_deploy/hosts/suse/mon/create.py

index a0b7bdb4fbd2c4b090cc1e4410336fd63f1428b1..8a83a926fd3c73fe0ad4ebc251ff359f65c18dcb 100644 (file)
@@ -1,6 +1,7 @@
 from ceph_deploy.hosts import common
 from ceph_deploy.misc import remote_shortname
-from ceph_deploy.lib.remoto import Connection, process
+from ceph_deploy.lib.remoto import process
+from ceph_deploy.connection import get_connection
 
 
 def create(distro, logger, args, monitor_keyring):
@@ -9,7 +10,7 @@ def create(distro, logger, args, monitor_keyring):
     service = common.which_service(distro.sudo_conn, logger)
 
     # TODO transition this once pushy is out
-    rconn = Connection(hostname, logger, sudo=True)
+    rconn = get_connection(hostname, logger)
     process.run(
         rconn,
         [
index 40f6e8dc16a9a9a0c1e8c703dccbf25bb3a97f75..a037fc05c8e95fd93f8938aa26219e5cd2d7f563 100644 (file)
@@ -1,6 +1,7 @@
 from ceph_deploy.hosts import common
 from ceph_deploy.misc import remote_shortname
-from ceph_deploy.lib.remoto import Connection, process
+from ceph_deploy.lib.remoto import process
+from ceph_deploy.connection import get_connection
 
 
 def create(distro, logger, args, monitor_keyring):
@@ -8,7 +9,7 @@ def create(distro, logger, args, monitor_keyring):
     common.mon_create(distro, logger, args, monitor_keyring, hostname)
 
     # TODO transition this once pushy is out
-    rconn = Connection(hostname, logger, sudo=True)
+    rconn = get_connection(hostname, logger)
 
     if distro.init == 'upstart':  # Ubuntu uses upstart
         process.run(
index e8fa199b3d7d3e4066da313d55de4a19f17ecc17..ac1c0fe74b264622059ca73997074028ab859baf 100644 (file)
@@ -1,6 +1,7 @@
 from ceph_deploy.hosts import common
 from ceph_deploy.misc import remote_shortname
-from ceph_deploy.lib.remoto import Connection, process
+from ceph_deploy.lib.remoto import process
+from ceph_deploy.connection import get_connection
 
 
 def create(distro, logger, args, monitor_keyring):
@@ -9,7 +10,7 @@ def create(distro, logger, args, monitor_keyring):
     service = common.which_service(distro.sudo_conn, logger)
 
     # TODO transition this once pushy is out
-    rconn = Connection(hostname, logger, sudo=True)
+    rconn = get_connection(hostname, logger)
 
     process.run(
         rconn,
index e8fa199b3d7d3e4066da313d55de4a19f17ecc17..ac1c0fe74b264622059ca73997074028ab859baf 100644 (file)
@@ -1,6 +1,7 @@
 from ceph_deploy.hosts import common
 from ceph_deploy.misc import remote_shortname
-from ceph_deploy.lib.remoto import Connection, process
+from ceph_deploy.lib.remoto import process
+from ceph_deploy.connection import get_connection
 
 
 def create(distro, logger, args, monitor_keyring):
@@ -9,7 +10,7 @@ def create(distro, logger, args, monitor_keyring):
     service = common.which_service(distro.sudo_conn, logger)
 
     # TODO transition this once pushy is out
-    rconn = Connection(hostname, logger, sudo=True)
+    rconn = get_connection(hostname, logger)
 
     process.run(
         rconn,