From: Alfredo Deza Date: Fri, 12 Sep 2014 17:41:35 +0000 (-0400) Subject: conditionally install wget if not present X-Git-Tag: v1.5.15~3^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f0fc4b250c2ed634b2cc13c66eb11ce96137c0a8;p=ceph-deploy.git conditionally install wget if not present Signed-off-by: Alfredo Deza --- 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: