summaryrefslogtreecommitdiffstats
path: root/build/templates/RedHat_mitaka.tmpl
diff options
context:
space:
mode:
authorYifei Xue <xueyifei@huawei.com>2016-11-02 18:09:35 +0800
committerYifei Xue <xueyifei@huawei.com>2016-11-17 15:24:46 +0800
commit35086233fdfb4163c589fc258229a931bb02df1a (patch)
tree7732c2e11fc4964ccaa65c74242386c4743a7edb /build/templates/RedHat_mitaka.tmpl
parentb15421ac53b8f57011613e29505cd8c0275b5066 (diff)
Create make_repo directory and optimize the current repo making related script
JIRA: COMPASS-496 Change-Id: I662d996382d38a3e9d0de6598dabe403b9d51665 Signed-off-by: Yifei Xue <xueyifei@huawei.com>
Diffstat (limited to 'build/templates/RedHat_mitaka.tmpl')
-rw-r--r--build/templates/RedHat_mitaka.tmpl79
1 files changed, 0 insertions, 79 deletions
diff --git a/build/templates/RedHat_mitaka.tmpl b/build/templates/RedHat_mitaka.tmpl
deleted file mode 100644
index 4d6b26fd..00000000
--- a/build/templates/RedHat_mitaka.tmpl
+++ /dev/null
@@ -1,79 +0,0 @@
-#!/bin/bash
-set -x
-
-#set OPV="mitaka"
-
-yum remove systemd -y
-# add 163 repo
-#rm -f /etc/yum.repos.d/CentOS-*.repo
-yum repolist
-yum clean all
-
-yum install yum-plugin-priorities -y
-# yum install http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm -y
-# yum install http://rdo.fedorapeople.org/openstack-$OPV/rdo-release-${OPV}.rpm -y
-yum install -y centos-release-openstack-${OPV}
-
-# 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 mongodb repo
-cat <<EOF >/etc/yum.repos.d/mongodb.repo
-[mongodb]
-name=MongoDB Repository
-baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
-gpgcheck=0
-enabled=1
-EOF
-
-# add galeracluster repo
-cat <<EOF >/etc/yum.repos.d/MariaDB.repo
-[mariadb]
-name =MariaDB
-baseurl = http://yum.mariadb.org/5.5/centos7-amd64
-gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
-gpgcheck=1
-EOF
-
-cat <<EOF >/etc/yum.repos.d/syslog.repo
-[rsyslog_v7]
-name=rsyslog
-baseurl="http://rpms.adiscon.com/v7-stable/epel-7/x86_64"
-enabled=1
-gpgcheck=0
-gpgkey=http://rpms.adiscon.com/RPM-GPG-KEY-Adiscon
-protect=1
-EOF
-
-cat <<EOF >>/etc/yum.conf
-exclude=mongodb-org,mongodb-org-server
-EOF
-
-yum update -y
-yum install createrepo tar -y
-
-yum -y install --downloadonly MariaDB-Galera-server
-#download packages
-#set packages = $getVar('default_packages', [])
-yum -y install --skip-broken --downloadonly #echo ' '.join(packages)
-#set packages = $getVar('packages', [])
-#silent packages.pop(packages.index('MariaDB-Galera-server'))
-yum -y install --skip-broken --downloadonly #echo ' '.join(packages)
-
-#make repo
-mkdir -p /centos7-$OPV-ppa/{Packages,repodata}
-
-find /var/cache/yum/ -name "*.rpm" | xargs -i cp {} /centos7-$OPV-ppa/Packages/
-
-rm /centos7-$OPV-ppa/Packages/selinux-policy* -f
-rm /centos7-$OPV-ppa/Packages/systemd* -f
-
-mv /epel-release-7-5.noarch.rpm /centos7-$OPV-ppa/Packages/
-cp /comps.xml /centos7-$OPV-ppa/
-cp /ceph_key_release.asc /centos7-$OPV-ppa/
-createrepo -g comps.xml /centos7-$OPV-ppa
-mkdir /centos7-$OPV-ppa/noarch
-mkdir /centos7-$OPV-ppa/noarch/Packages
-cp -r /centos7-$OPV-ppa/Packages/ceph* /centos7-$OPV-ppa/noarch/Packages/
-cp -r /centos7-$OPV-ppa/repodata/ /centos7-$OPV-ppa/noarch/
-tar -zcvf /centos7-$OPV-ppa.tar.gz /centos7-$OPV-ppa