Skip to content

Instantly share code, notes, and snippets.

@bastianh
Created November 14, 2013 09:53
Show Gist options
  • Save bastianh/7464249 to your computer and use it in GitHub Desktop.
Save bastianh/7464249 to your computer and use it in GitHub Desktop.
echo I am provisioning...
if [ -e "/etc/vagrant_provisioned_at" ]
then
echo Already provisioned!
exit 0
fi
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
echo deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main >> /etc/apt/sources.list
# stuff
apt-get install -y python-software-properties
add-apt-repository -y ppa:chris-lea/node.js
add-apt-repository -y ppa:fkrull/deadsnakes
apt-get update
apt-get install -y redis-server memcached screen byobu python-software-properties
apt-get install -y libpq-dev libfreetype6-dev g++ libpng-dev libmemcached-dev libbz2-dev libsqlite3-dev curl rabbitmq-server make build-essential python-dev python-pip libjudy-dev
apt-get install -y python3.3 python3.3-dev
#apt-get install -y clang-3.4 lldb-3.4
apt-get install -y postgresql-9.3 postgresql-contrib-9.3
pip install fabric
curl http://python-distribute.org/distribute_setup.py | python3.3
curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python3.3
easy_install-3.3 pytz
pip-3.3 install numpy
pip-3.3 install distribute
pip-3.3 install matplotlib
pip-3.3 install -r /vagrant/requirements.txt
pip-3.3 install --upgrade distribute
pip-3.3 install gunicorn
cp /vagrant/puppet/files/libdogma.so /usr/local/lib/libdogma.so.0.1
ldconfig
date > /etc/vagrant_provisioned_at
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment