Add Debian OS support in DevStack
Fix bug #1176216
Change-Id: Ia94c332f02a921a936db249dc3b4a7ae4eff0400
diff --git a/stack.sh b/stack.sh
index 32a7d74..40a068f 100755
--- a/stack.sh
+++ b/stack.sh
@@ -32,6 +32,15 @@
# and ``DISTRO``
GetDistro
+# Some dependencies are not available in Debian Wheezy official
+# repositories. However, it's possible to run OpenStack from gplhost
+# repository.
+if [[ "$os_VENDOR" =~ (Debian) ]]; then
+ echo 'deb http://archive.gplhost.com/debian grizzly main' | sudo tee /etc/apt/sources.list.d/gplhost_wheezy-backports.list
+ echo 'deb http://archive.gplhost.com/debian grizzly-backports main' | sudo tee -a /etc/apt/sources.list.d/gplhost_wheezy-backports.list
+ apt_get update
+ apt_get install --force-yes gplhost-archive-keyring
+fi
# Global Settings
# ===============
@@ -105,7 +114,7 @@
# Warn users who aren't on an explicitly supported distro, but allow them to
# override check and attempt installation with ``FORCE=yes ./stack``
-if [[ ! ${DISTRO} =~ (oneiric|precise|quantal|raring|saucy|f16|f17|f18|opensuse-12.2|rhel6) ]]; then
+if [[ ! ${DISTRO} =~ (oneiric|precise|quantal|raring|saucy|7.0|wheezy|sid|testing|jessie|f16|f17|f18|opensuse-12.2|rhel6) ]]; then
echo "WARNING: this script has not been tested on $DISTRO"
if [[ "$FORCE" != "yes" ]]; then
die $LINENO "If you wish to run this script anyway run with FORCE=yes"