]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
set the right priorities in centos installs for ceph.repo 197/head
authorAlfredo Deza <alfredo.deza@inktank.com>
Fri, 6 Jun 2014 14:42:36 +0000 (10:42 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Fri, 6 Jun 2014 14:42:36 +0000 (10:42 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/hosts/centos/install.py

index 55f7dadbc8273e1580e0d4df0178eb4f6166f51f..cb7c34ec8bc37b4b83186ffe4ac5190781dd3b36 100644 (file)
@@ -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',
         ],