only install mysql-server and rabbitmq-server if needed
diff --git a/stack.sh b/stack.sh
index 549095f..b325f27 100755
--- a/stack.sh
+++ b/stack.sh
@@ -117,7 +117,7 @@
 MYSQL_PRESEED
 
 # install apt requirements
-sudo apt-get install -y -q `cat $DEVSTACK/apts/* | cut -d\# -f1`
+sudo apt-get install -y -q `cat $DEVSTACK/apts/* | cut -d\# -f1 | grep -Ev "mysql-server|rabbitmq-server"`
 
 # install python requirements
 sudo PIP_DOWNLOAD_CACHE=/var/cache/pip pip install `cat $DEVSTACK/pips/*`
@@ -166,11 +166,20 @@
 
 ## TODO: update current user to allow sudo for all commands in files/sudo/*
 
+# Rabbit
+# ---------
+#
+if [[ "$ENABLED_SERVICES" =~ "rabbit" ]]; then
+    # Install and start rabbitmq-server
+    sudo apt-get install rabbitmq-server
+fi
 
 # Mysql
 # ---------
 #
 if [[ "$ENABLED_SERVICES" =~ "mysql" ]]; then
+    # Install and start mysql-server
+    sudo apt-get install mysql-server
     # Update the DB to give user ‘$MYSQL_USER’@’%’ full control of the all databases:
     sudo mysql -uroot -p$MYSQL_PASS -e "GRANT ALL PRIVILEGES ON *.* TO '$MYSQL_USER'@'%' identified by '$MYSQL_PASS';"