From 8e26bb4ba7a29374f1af1d5bd63ec14258dcd227 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Thu, 10 Apr 2014 12:54:21 -0400 Subject: [PATCH] call `yum clean` when installing in RHEL/CentOS Signed-off-by: Alfredo Deza --- ceph_deploy/hosts/centos/install.py | 6 ++++++ 1 file changed, 6 insertions(+) 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, -- 2.47.3