From: Alfredo Deza Date: Fri, 6 Jun 2014 14:42:36 +0000 (-0400) Subject: set the right priorities in centos installs for ceph.repo X-Git-Tag: v1.5.4~3^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=965503355588dbfbb5134a31c74a4a1763a62286;p=ceph-deploy.git set the right priorities in centos installs for ceph.repo Signed-off-by: Alfredo Deza --- diff --git a/ceph_deploy/hosts/centos/install.py b/ceph_deploy/hosts/centos/install.py index 55f7dad..cb7c34e 100644 --- a/ceph_deploy/hosts/centos/install.py +++ b/ceph_deploy/hosts/centos/install.py @@ -24,6 +24,7 @@ def repository_url_part(distro): def install(distro, version_kind, version, adjust_repos): + logger = distro.conn.logger release = distro.release machine = distro.machine_type repo_part = repository_url_part(distro) @@ -76,12 +77,16 @@ def install(distro, version_kind, version, adjust_repos): ], ) + # set the right priority + logger.warning('ensuring that /etc/yum.repos.d/ceph.repo contains a high pririty') + distro.conn.remote_module.set_repo_priority(['Ceph', 'Ceph-noarch', 'ceph-source']) + logger.warning('altered ceph.repo priorities to contain: priority=1') + process.run( distro.conn, [ 'yum', '-y', - '-q', 'install', 'ceph', ],