#!/usr/bin/env bash apt-get update apt-get dist-upgrade -y apt-get install -y git mkdir -p /devstack cd /devstack # Clone if we have to, else just pull. if [ ! -d .git ] then git clone https://git.openstack.org/openstack-dev/devstack /devstack else git pull fi # Make sure the user exists /devstack/tools/create-stack-user.sh chown -R stack:stack /devstack # Create some default passwords cat >/devstack/.localrc.password </devstack/local.conf <