From f0fc4b250c2ed634b2cc13c66eb11ce96137c0a8 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Fri, 12 Sep 2014 13:41:35 -0400 Subject: [PATCH] conditionally install wget if not present Signed-off-by: Alfredo Deza --- ceph_deploy/hosts/centos/install.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ceph_deploy/hosts/centos/install.py b/ceph_deploy/hosts/centos/install.py index 3cfdb10..d0e4f09 100644 --- a/ceph_deploy/hosts/centos/install.py +++ b/ceph_deploy/hosts/centos/install.py @@ -44,7 +44,9 @@ def install(distro, version_kind, version, adjust_repos): pkg_managers.yum_clean(distro.conn) # Even before EPEL, make sure we have `wget` - pkg_managers.yum(distro.conn, 'wget') + has_wget = distro.conn.remote_module.which('wget') + if not has_wget: + pkg_managers.yum(distro.conn, 'wget') # Get EPEL installed before we continue: if adjust_repos: -- 2.47.3