diff options
author | carey.xu <carey.xuhan@huawei.com> | 2015-12-08 08:54:29 +0800 |
---|---|---|
committer | carey.xu <carey.xuhan@huawei.com> | 2015-12-08 16:25:11 +0800 |
commit | 850a41b56643e5fb475f4a0f51bc787798802ec9 (patch) | |
tree | 0f0aa1ca4478fa1f7244278e4e0c0dfe618a7e41 /build/templates/RedHat_juno.tmpl | |
parent | e6ec4f17958fd00c74686df3e4b618b431ec1942 (diff) |
improve the efficiency of centos ppa building
JIRA: COMPASS-188
Change-Id: I8fbf89a71bee7a5e68976892ae8cd0bffc96c1ae
Signed-off-by: carey.xu <carey.xuhan@huawei.com>
Diffstat (limited to 'build/templates/RedHat_juno.tmpl')
-rw-r--r-- | build/templates/RedHat_juno.tmpl | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/build/templates/RedHat_juno.tmpl b/build/templates/RedHat_juno.tmpl index e8a54ac8..60a03b9f 100644 --- a/build/templates/RedHat_juno.tmpl +++ b/build/templates/RedHat_juno.tmpl @@ -18,6 +18,7 @@ yum install http://rdo.fedorapeople.org/openstack-juno/rdo-release-juno.rpm -y # modify centos7 repo for workaround sed -i 's/epel-Derived from Red Hat Enterprise Linux 7.1 (Source)/epel-7/g' /etc/yum.repos.d/rdo-release.repo + # add galeracluster repo cat <<EOF >/etc/yum.repos.d/MariaDB.repo [mariadb] @@ -57,19 +58,20 @@ type=rpm-md gpgkey=https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc EOF +cat <<EOF >>/etc/yum.conf +exclude=mongodb-org,mongodb-org-server +EOF + yum update -y -yum install createrepo -y -yum install tar -y +yum install createrepo tar -y +yum -y install --downloadonly MariaDB-Galera-server #download packages #set packages = $getVar('default_packages', []) -#for pkg in $packages -yum -y install $pkg --downloadonly -#end for +yum -y install --skip-broken --downloadonly #echo ' '.join(packages) #set packages = $getVar('packages', []) -#for pkg in $packages -yum -y install $pkg --downloadonly -#end for +#silent packages.pop(packages.index('MariaDB-Galera-server')) +yum -y install --skip-broken --downloadonly #echo ' '.join(packages) #make repo |