From da0264d7959785bed3d1bbb33490ba28dd53ff60 Mon Sep 17 00:00:00 2001 From: grakiss Date: Mon, 18 Apr 2016 02:29:33 -0400 Subject: 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 --- build/templates/Debian_kilo.tmpl | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'build/templates/Debian_kilo.tmpl') diff --git a/build/templates/Debian_kilo.tmpl b/build/templates/Debian_kilo.tmpl index 223173b5..d8efafbd 100644 --- a/build/templates/Debian_kilo.tmpl +++ b/build/templates/Debian_kilo.tmpl @@ -1,9 +1,10 @@ #!/bin/bash set -ex -# add openstack kilo repo +#set OPV="kilo" + sudo apt-get update && apt-get install -y software-properties-common -sudo add-apt-repository -y cloud-archive:kilo +sudo add-apt-repository -y cloud-archive:$OPV # add galeracluster repo sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 D669017EBC19DDBA @@ -28,8 +29,8 @@ sudo apt-get -d install $pkg -y #end for #make repo -mkdir -p trusty-kilo-ppa/conf -cat < trusty-kilo-ppa/conf/distributions +mkdir -p trusty-$OPV-ppa/conf +cat < trusty-$OPV-ppa/conf/distributions Codename: trusty Components: main Architectures: amd64 @@ -38,6 +39,6 @@ EOF mkdir deb find /var/cache/apt/ -name *.deb | xargs -i cp {} deb -reprepro -b trusty-kilo-ppa includedeb trusty deb/*.deb +reprepro -b trusty-$OPV-ppa includedeb trusty deb/*.deb -tar -zcvf /trusty-kilo-ppa.tar.gz ./trusty-kilo-ppa +tar -zcvf /trusty-$OPV-ppa.tar.gz ./trusty-$OPV-ppa -- cgit 1.2.3-korg