From: Travis Rhoden Date: Fri, 31 Jul 2015 19:23:55 +0000 (-0700) Subject: [RM-12543] fedora: only install requested packages X-Git-Tag: v1.5.27~7^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=93fb13121b1fc7615a274a1f286c81cc8ad704aa;p=ceph-deploy.git [RM-12543] fedora: only install requested packages Refs: #12543 Signed-off-by: Travis Rhoden --- diff --git a/ceph_deploy/hosts/fedora/install.py b/ceph_deploy/hosts/fedora/install.py index ff2a06f..0e3a034 100644 --- a/ceph_deploy/hosts/fedora/install.py +++ b/ceph_deploy/hosts/fedora/install.py @@ -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 )