aboutsummaryrefslogtreecommitdiffstats
path: root/build/templates/Debian_juno.tmpl
diff options
context:
space:
mode:
authorgrakiss <grakiss.wanglei@huawei.com>2016-04-18 02:29:33 -0400
committergrakiss <grakiss.wanglei@huawei.com>2016-04-18 02:29:33 -0400
commitda0264d7959785bed3d1bbb33490ba28dd53ff60 (patch)
tree676b1f63a65838abe4a93b94c090e3ee41873b13 /build/templates/Debian_juno.tmpl
parented90c8dde54f99c44ff94a593d7d62505c463b6d (diff)
Use variable instead of hardcode the openstack version name
JIRA:COMPASS-369 - Use variable instead of hardcode the openstack version name Change-Id: I710bbd58f3c1921301cc11bd7ed430c85a791ea8 Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
Diffstat (limited to 'build/templates/Debian_juno.tmpl')
-rw-r--r--build/templates/Debian_juno.tmpl13
1 files changed, 7 insertions, 6 deletions
diff --git a/build/templates/Debian_juno.tmpl b/build/templates/Debian_juno.tmpl
index 2f88cb2e..4cf42975 100644
--- a/build/templates/Debian_juno.tmpl
+++ b/build/templates/Debian_juno.tmpl
@@ -1,9 +1,10 @@
#!/bin/bash
set -ex
-# add openstack juno repo
+#set OPV="juno"
+
sudo apt-get update && apt-get install -y software-properties-common
-sudo add-apt-repository -y cloud-archive:juno
+sudo add-apt-repository -y cloud-archive:$OPV
# add galeracluster repo
#sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
@@ -30,8 +31,8 @@ sudo apt-get -d install $pkg -y
#end for
#make repo
-mkdir -p trusty-juno-ppa/conf
-cat <<EOF > trusty-juno-ppa/conf/distributions
+mkdir -p trusty-$OPV-ppa/conf
+cat <<EOF > trusty-$OPV-ppa/conf/distributions
Codename: trusty
Components: main
Architectures: amd64
@@ -40,6 +41,6 @@ EOF
mkdir deb
find /var/cache/apt/ -name *.deb | xargs -i cp {} deb
-reprepro -b trusty-juno-ppa includedeb trusty deb/*.deb
+reprepro -b trusty-$OPV-ppa includedeb trusty deb/*.deb
-tar -zcvf /trusty-juno-ppa.tar.gz ./trusty-juno-ppa
+tar -zcvf /trusty-$OPV-ppa.tar.gz ./trusty-$OPV-ppa