]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
make fedora reuse more centos install stuff
authorAlfredo Deza <alfredo.deza@inktank.com>
Thu, 17 Apr 2014 20:15:42 +0000 (16:15 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Thu, 17 Apr 2014 20:15:42 +0000 (16:15 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/hosts/fedora/install.py

index 00ee14146115d47905341ab8ad7a355e9b5a8108..5c9efe69ec6dcce8b5ba311ceadab1ff695565be 100644 (file)
@@ -1,6 +1,6 @@
 from ceph_deploy.util import pkg_managers, templates
 from ceph_deploy.lib.remoto import process
-from ceph_deploy.hosts.centos.install import repo_install
+from ceph_deploy.hosts.centos.install import repo_install, mirror_install  # noqa
 
 
 def install(distro, version_kind, version, adjust_repos):
@@ -63,26 +63,3 @@ def install(distro, version_kind, version, adjust_repos):
             'ceph',
         ],
     )
-
-
-def mirror_install(distro, repo_url, gpg_url, adjust_repos):
-    repo_url = repo_url.strip('/')  # Remove trailing slashes
-
-    if adjust_repos:
-        process.run(
-            distro.conn,
-            [
-                'rpm',
-                '--import',
-                gpg_url,
-            ]
-        )
-
-        ceph_repo_content = templates.ceph_repo.format(
-            repo_url=repo_url,
-            gpg_url=gpg_url
-        )
-
-        distro.conn.remote_module.write_yum_repo(ceph_repo_content)
-
-    pkg_managers.yum(distro.conn, 'ceph')