diff options
Diffstat (limited to 'build/templates/RedHat_liberty.tmpl')
-rw-r--r-- | build/templates/RedHat_liberty.tmpl | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/build/templates/RedHat_liberty.tmpl b/build/templates/RedHat_liberty.tmpl index baafc17f..74aada7b 100644 --- a/build/templates/RedHat_liberty.tmpl +++ b/build/templates/RedHat_liberty.tmpl @@ -1,15 +1,17 @@ #!/bin/bash set -x +#set OPV="liberty" + yum remove systemd -y # add 163 repo #rm -f /etc/yum.repos.d/CentOS-*.repo yum repolist yum clean all -# add openstack liberty repo + yum install yum-plugin-priorities -y yum install http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm -y -yum install http://rdo.fedorapeople.org/openstack-liberty/rdo-release-liberty.rpm -y +yum install http://rdo.fedorapeople.org/openstack-$OPV/rdo-release-$OPV.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 @@ -78,19 +80,19 @@ yum -y install --skip-broken --downloadonly #echo ' '.join(packages) yum -y install --skip-broken --downloadonly #echo ' '.join(packages) #make repo -mkdir -p /centos7-liberty-ppa/{Packages,repodata} - -find /var/cache/yum/ -name "*.rpm" | xargs -i cp {} /centos7-liberty-ppa/Packages/ - -rm /centos7-liberty-ppa/Packages/selinux-policy* -f -rm /centos7-liberty-ppa/Packages/systemd* -f - -mv /epel-release-7-5.noarch.rpm /centos7-liberty-ppa/Packages/ -cp /comps.xml /centos7-liberty-ppa/ -cp /ceph_key_release.asc /centos7-liberty-ppa/ -createrepo -g comps.xml /centos7-liberty-ppa -mkdir /centos7-liberty-ppa/noarch -mkdir /centos7-liberty-ppa/noarch/Packages -cp -r /centos7-liberty-ppa/Packages/ceph* /centos7-liberty-ppa/noarch/Packages/ -cp -r /centos7-liberty-ppa/repodata/ /centos7-liberty-ppa/noarch/ -tar -zcvf /centos7-liberty-ppa.tar.gz /centos7-liberty-ppa +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 |