]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
conditionally install wget if not present 239/head
authorAlfredo Deza <alfredo.deza@inktank.com>
Fri, 12 Sep 2014 17:41:35 +0000 (13:41 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Fri, 12 Sep 2014 17:41:35 +0000 (13:41 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/hosts/centos/install.py

index 3cfdb104e5efef3df0b1617ac4670555ec040c93..d0e4f093084306131eac4fb8f85ad75515f35ad8 100644 (file)
@@ -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: