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):
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,
[
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):
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(
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):
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,
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):
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,