From: Alfredo Deza Date: Thu, 10 Apr 2014 16:54:21 +0000 (-0400) Subject: call `yum clean` when installing in RHEL/CentOS X-Git-Tag: v1.5.0~14^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8e26bb4ba7a29374f1af1d5bd63ec14258dcd227;p=ceph-deploy.git call `yum clean` when installing in RHEL/CentOS Signed-off-by: Alfredo Deza --- diff --git a/ceph_deploy/hosts/centos/install.py b/ceph_deploy/hosts/centos/install.py index e677a8a..723b328 100644 --- a/ceph_deploy/hosts/centos/install.py +++ b/ceph_deploy/hosts/centos/install.py @@ -6,6 +6,8 @@ def install(distro, version_kind, version, adjust_repos): release = distro.release machine = distro.machine_type + pkg_managers.yum_clean(distro.conn) + # Even before EPEL, make sure we have `wget` pkg_managers.yum(distro.conn, 'wget') @@ -98,6 +100,8 @@ def install_epel(distro): def mirror_install(distro, repo_url, gpg_url, adjust_repos): repo_url = repo_url.strip('/') # Remove trailing slashes + pkg_managers.yum_clean(distro.conn) + if adjust_repos: process.run( distro.conn, @@ -130,6 +134,8 @@ def repo_install(distro, repo_name, baseurl, gpgkey, **kw): _type = 'repo-md' baseurl = baseurl.strip('/') # Remove trailing slashes + pkg_managers.yum_clean(distro.conn) + if gpgkey: process.run( distro.conn,