]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
suse/install: use zypper helpers for mirror_install
authorDavid Disseldorp <ddiss@suse.de>
Fri, 12 Jun 2015 09:03:16 +0000 (11:03 +0200)
committerDavid Disseldorp <ddiss@suse.de>
Fri, 10 Jul 2015 10:45:04 +0000 (12:45 +0200)
Signed-off-by: David Disseldorp <ddiss@suse.de>
ceph_deploy/hosts/suse/install.py

index e367bc355fa2475a8e40cb3bd042fc3b4e44052f..b61bf9466530ecce00f2c79dd66d242667982ab2 100644 (file)
@@ -14,7 +14,7 @@ def install(distro, version_kind, version, adjust_repos, **kw):
 
 
 def mirror_install(distro, repo_url, gpg_url, adjust_repos, **kw):
-    # note: when split packages for ceph land for Suse,
+    # note: when split packages for ceph land for SUSE,
     # `kw['components']` will have those. Unused for now.
     repo_url = repo_url.strip('/')  # Remove trailing slashes
     gpg_url_path = gpg_url.split('file://')[-1]  # Remove file if present
@@ -36,25 +36,9 @@ def mirror_install(distro, repo_url, gpg_url, adjust_repos, **kw):
         distro.conn.remote_module.write_file(
             '/etc/zypp/repos.d/ceph.repo',
             ceph_repo_content)
-        remoto.process.run(
-            distro.conn,
-            [
-                'zypper',
-                '--non-interactive',
-                'refresh'
-            ]
-        )
+        pkg_managers.zypper_refresh(distro.conn)
 
-    remoto.process.run(
-        distro.conn,
-        [
-            'zypper',
-            '--non-interactive',
-            '--quiet',
-            'install',
-            'ceph',
-            ],
-        )
+    pkg_managers.zypper(distro.conn, 'ceph')
 
 
 def repo_install(distro, reponame, baseurl, gpgkey, **kw):