]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
[RM-12543] fedora: only install requested packages
authorTravis Rhoden <trhoden@redhat.com>
Fri, 31 Jul 2015 19:23:55 +0000 (12:23 -0700)
committerTravis Rhoden <trhoden@redhat.com>
Mon, 3 Aug 2015 20:16:33 +0000 (13:16 -0700)
Refs: #12543

Signed-off-by: Travis Rhoden <trhoden@redhat.com>
ceph_deploy/hosts/fedora/install.py

index ff2a06fa4e89915ff014615e83dd33aadd67c8bd..0e3a03447010ed804fee4caabc9c146a63470f38 100644 (file)
@@ -1,11 +1,17 @@
 from ceph_deploy.lib import remoto
 from ceph_deploy.hosts.centos.install import repo_install, mirror_install  # noqa
 from ceph_deploy.util.paths import gpg
+from ceph_deploy.hosts.common import map_components
+
+
+NON_SPLIT_PACKAGES = ['ceph-osd', 'ceph-mon', 'ceph-mds']
 
 
 def install(distro, version_kind, version, adjust_repos, **kw):
-    # note: when split packages for ceph land for Fedora,
-    # `kw['components']` will have those. Unused for now.
+    packages = map_components(
+        NON_SPLIT_PACKAGES,
+        kw.pop('components', [])
+    )
     logger = distro.conn.logger
     release = distro.release
     machine = distro.machine_type
@@ -76,8 +82,5 @@ def install(distro, version_kind, version, adjust_repos, **kw):
         logger.warning('altered ceph.repo priorities to contain: priority=1')
 
     distro.packager.install(
-        [
-            'ceph',
-            'ceph-radosgw'
-        ]
+        packages
     )