Centos support implemented

Allows to use Contrail plugin in Centos-based environments

Change-Id: I07228bf1abcb7990943905b556fa06b02d72f85a
This commit is contained in:
Vyacheslav Struk
2015-03-26 16:13:13 +03:00
parent 744a34222a
commit f617c4a965
13 changed files with 136 additions and 45 deletions

View File

@@ -0,0 +1,13 @@
+++ /opt/contrail/utils/fabfile/tasks/install.py
@@ -171,10 +171,7 @@
run(cmd)
def yum_install(rpms, disablerepo = True):
- if disablerepo:
- cmd = "yum -y --nogpgcheck --disablerepo=* --enablerepo=contrail_install_repo install "
- else:
- cmd = "yum -y --nogpgcheck install "
+ cmd = "yum -y --nogpgcheck install "
os_type = detect_ostype()
# redhat platform installs from multiple repos
if os_type in ['redhat']: