calamari_setup: hack for 1.3.0 on centos: install lttng from EPEL

lttng is not yet part of any private repo; since 1.3.0/CentOS is not
a supported product, just grab it from EPEL for this test.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
This commit is contained in:
Dan Mick 2015-07-28 15:46:22 -07:00
parent ac8b0e1abf
commit 30dbe93125

View File

@ -109,6 +109,11 @@ def fix_yum_repos(remote, distro):
contain a repo file named rhel<version-number>.repo
"""
if distro.startswith('centos'):
# hack alert: detour: install lttng for ceph
# this works because epel is preinstalled on the vpms
# this is not a generic solution
# this is here solely to test the one-off 1.3.0 release for centos6
remote.run(args="sudo yum -y install lttng-tools")
cmds = [
'sudo mkdir /etc/yum.repos.d.old'.split(),
['sudo', 'cp', run.Raw('/etc/yum.repos.d/*'),