Skip to content

Instantly share code, notes, and snippets.

@ygbourhis
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ygbourhis/aab04d88f7a19dd3b2b7 to your computer and use it in GitHub Desktop.
Save ygbourhis/aab04d88f7a19dd3b2b7 to your computer and use it in GitHub Desktop.
bootstrap.sh (used by Vagrantfile)
#!/usr/bin/env bash
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y ubuntu-cloud-keyring
cp /vagrant/cloud_archive_juno.list /etc/apt/sources.list.d/
apt-get update
apt-get upgrade -y
apt-get install -y apt-file apache2 bpython bridge-utils curl dhcpdump dnsmasq-base dnsmasq-utils ebtables euca2ools gawk gcc genisoimage git gir1.2-gnomekeyring-1.0 htop iftop iptables iputils-arping iputils-ping ipython kpartx libffi-dev libjs-jquery-tablesorter libldap2-dev libmysqlclient-dev libpq-dev libsasl2-dev libvirt-dev libxml2-dev libxml2-utils libxslt1-dev locate lsof lvm2 memcached mongodb-clients mongodb-server msgpack-python nbd-client nodejs open-iscsi open-iscsi-utils openssh-server openssl openvpn parted psmisc pylint python-boto python-carrot python-cheetah python-cmd2 python-configobj python-coverage python-dateutil python-dev python-eventlet python-feedparser python-gflags python-greenlet python-iso8601 python-kombu python-libvirt python-libxml2 python-lockfile python-lxml python-m2crypto python-migrate python-mox python-mysqldb python-netaddr python-netifaces python-nose python-numpy python-paste python-pastedeploy python-pastescript python-pip python-pysqlite2 python-pyudev python-qpid python-routes python-setuptools python-simplejson python-sqlalchemy python-suds python-tempita python-unittest2 python-virtualenv python-webob python-wsgiref python-xattr qemu-utils screen sg3-utils socat sqlite3 sudo sysfsutils tar tcpdump tgt traceroute unzip vim vim-nox virtinst virtualenvwrapper vlan wget xfsprogs zlib1g-dev
service apparmor teardown
apt-get purge -y apparmor
apt-get autoremove -y
apt-file update
rm -rf devstack
git clone git://github.com/openstack-dev/devstack.git
mkdir -p .pip
echo "[global]" > .pip/pip.conf
echo "timeout=120" >> .pip/pip.conf
chown -R vagrant:vagrant .pip
pip install -U ipdb
pip install -U pudb
pip install -U rpdb
pip install -U q
pip install -U jsonrpclib jsonrpc
ln -sf /vagrant/local.conf .
ln -sf /vagrant/initrc .
cd devstack
ln -sf ../local.conf .
ln -sf ../initrc .
#ln -sf /opt/stack/magnetodb/contrib/devstack/lib/magnetodb lib/magnetodb
#ln -sf /opt/stack/magnetodb/contrib/devstack/extras.d/90-magnetodb.sh extras.d/90-magnetodb.sh
chown -R vagrant:vagrant ../devstack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment