From: Gary Lowell Date: Fri, 8 Mar 2013 17:57:10 +0000 (-0800) Subject: install.py: update for rpms X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=91c637f9f96d499355cc23042ff1a3a39e66710b;p=ceph-deploy.git install.py: update for rpms Change centos to CentOS for the release name. Update the path to the ceph-release rpm to match the dev repos. Signed-off-by: Gary Lowell --- diff --git a/ceph_deploy/install.py b/ceph_deploy/install.py index ba5b0da..b56189d 100644 --- a/ceph_deploy/install.py +++ b/ceph_deploy/install.py @@ -34,7 +34,7 @@ def install_centos(release, codename, version_kind, version): ) subprocess.call( - args=['rpm', '-Uvh','--quiet', '{url}el6/x86_64/ceph-release-1-0.el6.noarch.rpm'.format( + args=['rpm', '-Uvh','--quiet', '{url}noarch/ceph-release-1-0.el6.noarch.rpm'.format( url=url )] ) @@ -178,12 +178,12 @@ def install(args): sudo = args.pushy('ssh+sudo:{hostname}'.format(hostname=hostname)) lsb_release_r = sudo.compile(lsb.lsb_release) (distro, release, codename) = lsb_release_r() - log.debug('Distro %s codename %s', distro, codename) + log.debug('Distro %s release %s codename %s', distro, release, codename) if (distro == 'Debian' or distro == 'Ubuntu'): log.debug('Installing on host %s ...', hostname) install_r = sudo.compile(install_debian) - elif (distro == 'centos'): + elif (distro == 'CentOS'): log.debug('Installing on host %s ...', hostname) install_r = sudo.compile(install_centos) else: