summaryrefslogtreecommitdiffstats
path: root/build/templates
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
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')
-rw-r--r--build/templates/Debian_juno.tmpl50
-rw-r--r--build/templates/Debian_kilo.tmpl48
-rw-r--r--build/templates/Debian_liberty.tmpl57
-rw-r--r--build/templates/Debian_mitaka.tmpl57
-rw-r--r--build/templates/Debian_xenial_mitaka.tmpl71
-rw-r--r--build/templates/Debian_xenial_newton.tmpl77
-rw-r--r--build/templates/RedHat_juno.tmpl95
-rw-r--r--build/templates/RedHat_kilo.tmpl103
-rw-r--r--build/templates/RedHat_liberty.tmpl98
-rw-r--r--build/templates/RedHat_mitaka.tmpl79
-rw-r--r--build/templates/RedHat_redhat7_osp9.tmpl136
-rw-r--r--build/templates/compass_core.tmpl42
12 files changed, 0 insertions, 913 deletions
diff --git a/build/templates/Debian_juno.tmpl b/build/templates/Debian_juno.tmpl
deleted file mode 100644
index 95375693..00000000
--- a/build/templates/Debian_juno.tmpl
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/bash
-set -ex
-
-#set OPV="juno"
-
-sudo apt-get update && apt-get install -y software-properties-common
-sudo add-apt-repository -y cloud-archive:$OPV
-
-# add galeracluster repo
-#sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
-#sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu trusty main'
-sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 D669017EBC19DDBA
-sudo add-apt-repository 'deb http://releases.galeracluster.com/ubuntu trusty main'
-# add oracle java8 ppa
-sudo add-apt-repository ppa:webupd8team/java
-# add open java7 repo
-sudo add-apt-repository 'deb http://security.ubuntu.com/ubuntu trusty-security main'
-
-sudo apt-get update
-
-sudo apt-get install reprepro -y
-
-cd /var/cache/apt/
-sudo apt-get download libexpat1
-cd -
-
-#download packages
-#set packages = $getVar('default_packages', [])
-#for pkg in $packages
-sudo apt-get -d install $pkg -y
-#end for
-#set packages = $getVar('packages', [])
-#for pkg in $packages
-sudo apt-get -d install $pkg -y
-#end for
-
-#make repo
-mkdir -p trusty-$OPV-ppa/conf
-cat <<EOF > trusty-$OPV-ppa/conf/distributions
-Codename: trusty
-Components: main
-Architectures: amd64
-EOF
-
-mkdir deb
-find /var/cache/apt/ -name *.deb | xargs -i cp {} deb
-
-reprepro -b trusty-$OPV-ppa includedeb trusty deb/*.deb
-
-tar -zcvf /trusty-$OPV-ppa.tar.gz ./trusty-$OPV-ppa
diff --git a/build/templates/Debian_kilo.tmpl b/build/templates/Debian_kilo.tmpl
deleted file mode 100644
index 18c7fa00..00000000
--- a/build/templates/Debian_kilo.tmpl
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/bash
-set -ex
-
-#set OPV="kilo"
-
-sudo apt-get update && apt-get install -y software-properties-common
-sudo add-apt-repository -y cloud-archive:$OPV
-
-# add galeracluster repo
-sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 D669017EBC19DDBA
-sudo add-apt-repository 'deb http://releases.galeracluster.com/ubuntu trusty main'
-# add oracle java8 ppa
-sudo add-apt-repository ppa:webupd8team/java
-# add open java7 repo
-sudo add-apt-repository 'deb http://security.ubuntu.com/ubuntu trusty-security main'
-
-sudo apt-get update
-
-sudo apt-get install reprepro -y
-
-cd /var/cache/apt/
-sudo apt-get download libexpat1
-cd -
-
-#download packages
-#set packages = $getVar('default_packages', [])
-#for pkg in $packages
-sudo apt-get -d install $pkg -y
-#end for
-#set packages = $getVar('packages', [])
-#for pkg in $packages
-sudo apt-get -d install $pkg -y
-#end for
-
-#make repo
-mkdir -p trusty-$OPV-ppa/conf
-cat <<EOF > trusty-$OPV-ppa/conf/distributions
-Codename: trusty
-Components: main
-Architectures: amd64
-EOF
-
-mkdir deb
-find /var/cache/apt/ -name *.deb | xargs -i cp {} deb
-
-reprepro -b trusty-$OPV-ppa includedeb trusty deb/*.deb
-
-tar -zcvf /trusty-$OPV-ppa.tar.gz ./trusty-$OPV-ppa
diff --git a/build/templates/Debian_liberty.tmpl b/build/templates/Debian_liberty.tmpl
deleted file mode 100644
index 4bb209eb..00000000
--- a/build/templates/Debian_liberty.tmpl
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/bash
-set -ex
-
-#set OPV="liberty"
-
-# add openstack $OPV repo
-sudo apt-get update && apt-get install -y software-properties-common
-sudo add-apt-repository -y cloud-archive:$OPV
-
-# add galeracluster repo
-#sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
-#sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu trusty main'
-sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 D669017EBC19DDBA
-sudo add-apt-repository 'deb http://releases.galeracluster.com/ubuntu trusty main'
-# add oracle java8 ppa
-sudo add-apt-repository ppa:webupd8team/java
-# add open java7 repo
-sudo add-apt-repository 'deb http://security.ubuntu.com/ubuntu trusty-security main'
-
-sudo apt-get update
-
-sudo apt-get install reprepro -y
-
-sudo apt-get -d install pciutils -y
-
-cd /var/cache/apt/
-sudo apt-get download libexpat1
-cd -
-
-#download packages
-#set packages = $getVar('default_packages', [])
-#for pkg in $packages
-sudo apt-get -d install $pkg -y
-#end for
-#set packages = $getVar('packages', [])
-#for pkg in $packages
-sudo apt-get -d install $pkg -y
-#end for
-
-#make repo
-mkdir -p trusty-$OPV-ppa/conf
-cat <<EOF > trusty-$OPV-ppa/conf/distributions
-Codename: trusty
-Components: main
-Architectures: amd64
-EOF
-
-sudo apt-get install wget
-wget -O /var/cache/apt/python-pyasn1_0.1.8-2_all.deb http://us.archive.ubuntu.com/ubuntu/pool/main/p/pyasn1/python-pyasn1_0.1.8-2_all.deb
-rm -rf /var/cache/apt/python-pyasn1_0.1.7-1ubuntu2_all.deb
-
-mkdir deb
-find /var/cache/apt/ -name *.deb | xargs -i cp {} deb
-
-reprepro -b trusty-$OPV-ppa includedeb trusty deb/*.deb
-
-tar -zcvf /trusty-$OPV-ppa.tar.gz ./trusty-$OPV-ppa
diff --git a/build/templates/Debian_mitaka.tmpl b/build/templates/Debian_mitaka.tmpl
deleted file mode 100644
index 7df519de..00000000
--- a/build/templates/Debian_mitaka.tmpl
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/bash
-set -ex
-
-#set OPV="mitaka"
-
-# add openstack $OPV repo
-sudo apt-get update && apt-get install -y software-properties-common
-sudo add-apt-repository -y cloud-archive:$OPV
-
-# add galeracluster repo
-#sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
-#sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu trusty main'
-sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 D669017EBC19DDBA
-sudo add-apt-repository 'deb http://releases.galeracluster.com/ubuntu trusty main'
-# add oracle java8 ppa
-sudo add-apt-repository ppa:webupd8team/java
-# add open java7 repo
-sudo add-apt-repository 'deb http://security.ubuntu.com/ubuntu trusty-security main'
-
-sudo apt-get update
-
-sudo apt-get install reprepro -y
-
-sudo apt-get -d install pciutils -y
-
-cd /var/cache/apt/
-sudo apt-get download libexpat1
-cd -
-
-#download packages
-#set packages = $getVar('default_packages', [])
-#for pkg in $packages
-sudo apt-get -d install $pkg -y
-#end for
-#set packages = $getVar('packages', [])
-#for pkg in $packages
-sudo apt-get -d install $pkg -y
-#end for
-
-#make repo
-mkdir -p trusty-$OPV-ppa/conf
-cat <<EOF > trusty-$OPV-ppa/conf/distributions
-Codename: trusty
-Components: main
-Architectures: amd64
-EOF
-
-sudo apt-get install wget
-wget -O /var/cache/apt/python-pyasn1_0.1.8-2_all.deb http://us.archive.ubuntu.com/ubuntu/pool/main/p/pyasn1/python-pyasn1_0.1.8-2_all.deb
-rm -rf /var/cache/apt/python-pyasn1_0.1.7-1ubuntu2_all.deb
-
-mkdir deb
-find /var/cache/apt/ -name *.deb | xargs -i cp {} deb
-
-reprepro -b trusty-$OPV-ppa includedeb trusty deb/*.deb
-
-tar -zcvf /trusty-$OPV-ppa.tar.gz ./trusty-$OPV-ppa
diff --git a/build/templates/Debian_xenial_mitaka.tmpl b/build/templates/Debian_xenial_mitaka.tmpl
deleted file mode 100644
index f82da632..00000000
--- a/build/templates/Debian_xenial_mitaka.tmpl
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/bin/bash
-set -ex
-
-#set OPV="mitaka"
-
-# add openstack $OPV repo
-apt-get update && apt-get install -y software-properties-common
-# sudo add-apt-repository -y cloud-archive:$OPV
-apt-get install -d nova-compute-kvm -y
-
-#make pernoca database
-apt-get install -y apt-transport-https debconf-utils libaio1 libc6 libdbd-mysql-perl libgcc1 libgcrypt20 libstdc++6 python-software-properties wget
-apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
-add-apt-repository 'deb https://mirrors.tuna.tsinghua.edu.cn/mariadb/mariadb-10.0.26/repo/ubuntu/ xenial main'
-apt-get update
-apt-get install -d mariadb-client mariadb-galera-server-10.0 galera-3 rsync socat -y
-#make pernoca database end
-
-
-
-# add galeracluster repo
-#sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
-#sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu trusty main'
-#apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 D669017EBC19DDBA
-##sudo add-apt-repository 'deb http://releases.galeracluster.com/ubuntu trusty main'
-# add oracle java8 ppa
-add-apt-repository ppa:webupd8team/java
-# add open java7 repo
-##sudo add-apt-repository 'deb http://security.ubuntu.com/ubuntu trusty-security main'
-
-apt-get update
-
-apt-get install python2.7 -y
-
-apt-get install reprepro -y
-
-apt-get -d install pciutils -y
-
-cd /var/cache/apt/
-apt-get download libexpat1
-cd -
-
-#download packages
-#set packages = $getVar('default_packages', [])
-#for pkg in $packages
-apt-get -d install $pkg -y
-#end for
-#set packages = $getVar('packages', [])
-#for pkg in $packages
-apt-get -d install $pkg -y
-#end for
-
-#make repo
-mkdir -p xenial-$OPV-ppa/conf
-cat <<EOF > xenial-$OPV-ppa/conf/distributions
-Codename: xenial
-Components: main
-Architectures: amd64
-EOF
-
-apt-get install wget
-
-wget -O /var/cache/apt/python-pyasn1_0.1.8-2_all.deb http://us.archive.ubuntu.com/ubuntu/pool/main/p/pyasn1/python-pyasn1_0.1.8-2_all.deb
-rm -rf /var/cache/apt/python-pyasn1_0.1.7-1ubuntu2_all.deb
-
-mkdir deb
-find /var/cache/apt/ -name *.deb | xargs -i cp {} deb
-
-reprepro -b xenial-$OPV-ppa includedeb xenial deb/*.deb
-
-tar -zcvf /xenial-$OPV-ppa.tar.gz ./xenial-$OPV-ppa
diff --git a/build/templates/Debian_xenial_newton.tmpl b/build/templates/Debian_xenial_newton.tmpl
deleted file mode 100644
index 84f28700..00000000
--- a/build/templates/Debian_xenial_newton.tmpl
+++ /dev/null
@@ -1,77 +0,0 @@
-#!/bin/bash
-set -ex
-
-#set OPV="newton"
-
-# add openstack $OPV repo
-apt-get update && apt-get install -y software-properties-common
-add-apt-repository -y cloud-archive:$OPV
-apt-get update && apt-get -y dist-upgrade
-apt-get install -d nova-compute-kvm -y
-
-#make pernoca database
-apt-get install -y apt-transport-https debconf-utils libaio1 libc6 libdbd-mysql-perl libgcc1 libgcrypt20 libstdc++6 python-software-properties wget
-apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
-add-apt-repository 'deb https://mirrors.tuna.tsinghua.edu.cn/mariadb/mariadb-10.0.26/repo/ubuntu/ xenial main'
-apt-get update
-apt-get install -d mariadb-client mariadb-galera-server-10.0 galera-3 rsync socat -y
-#make pernoca database end
-
-
-
-# add galeracluster repo
-#sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
-#sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu trusty main'
-#apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 D669017EBC19DDBA
-##sudo add-apt-repository 'deb http://releases.galeracluster.com/ubuntu trusty main'
-# add oracle java8 ppa
-add-apt-repository ppa:webupd8team/java
-# add open java7 repo
-##sudo add-apt-repository 'deb http://security.ubuntu.com/ubuntu trusty-security main'
-
-apt-get update
-
-apt-get install python2.7 -y
-
-apt-get install reprepro -y
-
-apt-get -d install pciutils -y
-
-cd /var/cache/apt/
-apt-get download libexpat1
-cd -
-
-#download packages
-#set packages = $getVar('default_packages', [])
-#for pkg in $packages
-apt-get -d install $pkg -y
-#end for
-#set packages = $getVar('packages', [])
-#for pkg in $packages
-apt-get -d install $pkg -y
-#end for
-
-#make repo
-mkdir -p xenial-$OPV-ppa/conf
-cat <<EOF > xenial-$OPV-ppa/conf/distributions
-Codename: xenial
-Components: main
-Architectures: amd64
-EOF
-
-apt-get install wget
-
-wget -O /var/cache/apt/python-pyasn1_0.1.8-2_all.deb http://us.archive.ubuntu.com/ubuntu/pool/main/p/pyasn1/python-pyasn1_0.1.8-2_all.deb
-rm -rf /var/cache/apt/python-pyasn1_0.1.7-1ubuntu2_all.deb
-
-# Ubuntu16.04.1 LTS only have gcc-5-base_5.4.0-6ubuntu1~16.04.1, nova-novncproxy need
-# gcc-5-base_5.4.0-6ubuntu1~16.04.2, but the docker could not download gcc-5-base package.
-wget http://205.177.226.237:9999/nova-novncproxy_xenial_newton.tar.gz
-tar -zxvf nova-novncproxy_xenial_newton.tar.gz --strip-components 1 -C /var/cache/apt/
-
-mkdir deb
-find /var/cache/apt/ -name *.deb | xargs -i cp {} deb
-
-reprepro -b xenial-$OPV-ppa includedeb xenial deb/*.deb
-
-tar -zcvf /xenial-$OPV-ppa.tar.gz ./xenial-$OPV-ppa
diff --git a/build/templates/RedHat_juno.tmpl b/build/templates/RedHat_juno.tmpl
deleted file mode 100644
index 3e172637..00000000
--- a/build/templates/RedHat_juno.tmpl
+++ /dev/null
@@ -1,95 +0,0 @@
-#!/bin/bash
-set -x
-
-#set OPV="juno"
-
-yum remove systemd -y
-# add 163 repo
-yum install wget -y
-wget -O /epel-release-7-5.noarch.rpm http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
-yum remove wget iptables-services -y
-yum update -y
-#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-5.noarch.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
-
-
-# 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.repos.d/ceph.repo
-[ceph]
-name=Ceph packages for x86_64
-baseurl=http://ceph.com/rpm-hammer/rhel7/x86_64
-enabled=1
-priority=2
-gpgcheck=1
-type=rpm-md
-gpgkey=https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc
-
-[ceph-noarch]
-name=Ceph noarch packages
-baseurl=http://ceph.com/rpm-hammer/rhel7/noarch
-enabled=1
-priority=2
-gpgcheck=1
-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 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
diff --git a/build/templates/RedHat_kilo.tmpl b/build/templates/RedHat_kilo.tmpl
deleted file mode 100644
index f9942d8f..00000000
--- a/build/templates/RedHat_kilo.tmpl
+++ /dev/null
@@ -1,103 +0,0 @@
-#!/bin/bash
-set -x
-
-#set OPV="kilo"
-
-yum remove systemd -y
-# add 163 repo
-yum install wget -y
-wget -O /epel-release-7-5.noarch.rpm http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
-yum remove wget iptables-services -y
-yum update -y
-#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-5.noarch.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
-
-# 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.repos.d/ceph.repo
-[ceph]
-name=Ceph packages for x86_64
-baseurl=http://ceph.com/rpm-hammer/rhel7/x86_64
-enabled=1
-priority=2
-gpgcheck=1
-type=rpm-md
-gpgkey=https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc
-
-[ceph-noarch]
-name=Ceph noarch packages
-baseurl=http://ceph.com/rpm-hammer/rhel7/noarch
-enabled=1
-priority=2
-gpgcheck=1
-type=rpm-md
-gpgkey=https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc
-EOF
-
-cat <<EOF >/etc/yum.repos.d/mongo.repo
-[10gen]
-name=10gen Repository
-baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64
-gpgcheck=0
-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
-rm /centos7-$OPV-ppa/Packages/openssl-1.0.1e-42.el7.9.x86_64.rpm
-rm /centos7-$OPV-ppa/Packages/libnl3-3.2.21-9.el7_1.x86_64.rpm
-
-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
diff --git a/build/templates/RedHat_liberty.tmpl b/build/templates/RedHat_liberty.tmpl
deleted file mode 100644
index 24781785..00000000
--- a/build/templates/RedHat_liberty.tmpl
+++ /dev/null
@@ -1,98 +0,0 @@
-#!/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
-
-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
-
-# 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.repos.d/ceph.repo
-[ceph]
-name=Ceph packages for x86_64
-baseurl=http://ceph.com/rpm-hammer/rhel7/x86_64
-enabled=1
-priority=2
-gpgcheck=1
-type=rpm-md
-gpgkey=https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc
-
-[ceph-noarch]
-name=Ceph noarch packages
-baseurl=http://ceph.com/rpm-hammer/rhel7/noarch
-enabled=1
-priority=2
-gpgcheck=1
-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 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
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
diff --git a/build/templates/RedHat_redhat7_osp9.tmpl b/build/templates/RedHat_redhat7_osp9.tmpl
deleted file mode 100644
index 24a0928f..00000000
--- a/build/templates/RedHat_redhat7_osp9.tmpl
+++ /dev/null
@@ -1,136 +0,0 @@
-#!/bin/bash
-set -x
-
-#set OPV="osp9"
-
-#raw
-# FIXME: remove hard coded ip, use loop to create repo conf
-cat << EOF > /etc/yum.repos.d/rhel.repo
-[rhel-7-server-extras]
-name=My Red Hat Enterprise Linux \$releasever - \$basearch
-baseurl=http://192.168.21.21/rhel7-repos/rhel-7-server-extras-rpms
-enabled=1
-gpgcheck=0
-
-[rhel-7-server-openstack-9-rpms]
-name=My Red Hat Enterprise Linux \$releasever - \$basearch
-baseurl=http://192.168.21.21/rhel7-repos/rhel-7-server-openstack-9-rpms
-enabled=1
-gpgcheck=0
-
-[rhel-7-server-rh-common-rpms]
-name=My Red Hat Enterprise Linux \$releasever - \$basearch
-baseurl=http://192.168.21.21/rhel7-repos/rhel-7-server-rh-common-rpms
-enabled=1
-gpgcheck=0
-
-[rhel-7-server-rpms]
-name=My Red Hat Enterprise Linux \$releasever - \$basearch
-baseurl=http://192.168.21.21/rhel7-repos/rhel-7-server-rpms
-enabled=1
-gpgcheck=0
-
-[rhel-7-server-rhceph-1.3-calamari-rpms]
-name=My Red Hat Enterprise Linux \$releasever - \$basearch
-baseurl=http://192.168.21.21/rhel7-repos/rhel-7-server-rhceph-1.3-calamari-rpms
-enabled=1
-gpgcheck=0
-
-[rhel-7-server-rhceph-1.3-installer-rpms]
-name=My Red Hat Enterprise Linux \$releasever - \$basearch
-baseurl=http://192.168.21.21/rhel7-repos/rhel-7-server-rhceph-1.3-installer-rpms
-enabled=1
-gpgcheck=0
-
-[rhel-7-server-rhceph-1.3-mon-rpms]
-name=My Red Hat Enterprise Linux \$releasever - \$basearch
-baseurl=http://192.168.21.21/rhel7-repos/rhel-7-server-rhceph-1.3-mon-rpms
-enabled=1
-gpgcheck=0
-
-[rhel-7-server-rhceph-1.3-tools-rpms]
-name=My Red Hat Enterprise Linux \$releasever - \$basearch
-baseurl=http://192.168.21.21/rhel7-repos/rhel-7-server-rhceph-1.3-tools-rpms
-enabled=1
-gpgcheck=0
-
-EOF
-
-yum update -y
-
-#end raw
-
-# 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}
-yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
-
-
-# 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)
-
-mkdir -p /var/cache/yum/repotrack
-repotrack -a x86_64 -p /var/cache/yum/repotrack lvm2 python-devel \
- dracut-network dracut-config-rescue
-
-#make repo
-mkdir -p /redhat7-$OPV-ppa/{Packages,repodata}
-
-find /var/cache/yum/ -name "*.rpm" | xargs -i cp {} /redhat7-$OPV-ppa/Packages/
-
-rm /redhat7-$OPV-ppa/Packages/selinux-policy* -f
-rm /redhat7-$OPV-ppa/Packages/systemd* -f
-
-mv /epel-release-7-5.noarch.rpm /redhat7-$OPV-ppa/Packages/
-cp /comps.xml /redhat7-$OPV-ppa/
-cp /ceph_key_release.asc /redhat7-$OPV-ppa/
-createrepo -g comps.xml /redhat7-$OPV-ppa
-mkdir /redhat7-$OPV-ppa/noarch
-mkdir /redhat7-$OPV-ppa/noarch/Packages
-cp -r /redhat7-$OPV-ppa/Packages/ceph* /redhat7-$OPV-ppa/noarch/Packages/
-cp -r /redhat7-$OPV-ppa/repodata/ /redhat7-$OPV-ppa/noarch/
-tar -zcvf /redhat7-$OPV-ppa.tar.gz /redhat7-$OPV-ppa
diff --git a/build/templates/compass_core.tmpl b/build/templates/compass_core.tmpl
deleted file mode 100644
index 1cb34b49..00000000
--- a/build/templates/compass_core.tmpl
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/bash
-set -x
-
-# add openstack kilo repo
-yum install http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm -y
-yum install http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm -y
-
-cat << EOF >/etc/yum.repos.d/elasticsearch.repo
-[elasticsearch-2.x]
-name=Elasticsearch repository for 2.x packages
-baseurl=http://packages.elastic.co/elasticsearch/2.x/centos
-gpgcheck=1
-gpgkey=http://packages.elastic.co/GPG-KEY-elasticsearch
-enabled=1
-EOF
-
-cat << EOF >/etc/yum.repos.d/logstash.repo
-[logstash-2.0]
-name=Logstash repository for 2.0.x packages
-baseurl=http://packages.elastic.co/logstash/2.0/centos
-gpgcheck=1
-gpgkey=http://packages.elastic.co/GPG-KEY-elasticsearch
-enabled=1
-EOF
-
-yum update -y
-
-mkdir -p /centos7-compass-core
-yum -y reinstall bind-license --downloadonly --downloaddir=/centos7-compass-core
-yum -y reinstall openssl-libs --downloadonly --downloaddir=/centos7-compass-core
-
-#download packages
-#set packages = $getVar('default_packages', [])
-yum -y install --skip-broken --downloadonly --downloaddir=/centos7-compass-core #echo ' '.join(packages)
-#set packages = $getVar('packages', [])
-yum -y install --skip-broken --downloadonly --downloaddir=/centos7-compass-core #echo ' '.join(packages)
-#make repo
-
-find /var/cache/yum/ -name "*.rpm" | xargs -i cp {} /centos7-compass-core
-
-yum install tar -y
-tar -zcvf /centos7-compass-core.tar.gz /centos7-compass-core