Created
October 21, 2013 14:24
-
-
Save sk7/7084721 to your computer and use it in GitHub Desktop.
apt-get instead of chef recipes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$script = <<SCRIPT | |
# postgres 9.2 | |
wget http://anonscm.debian.org/loggerhead/pkg-postgresql/postgresql-common/trunk/download/head:/apt.postgresql.org.s-20130224224205-px3qyst90b3xp8zj-1/apt.postgresql.org.sh | |
echo | sudo sh apt.postgresql.org.sh | |
sudo apt-get -y install postgresql-9.2 | |
sudo pg_createcluster 9.2 ubergrape | |
# redis | |
sudo apt-get -y install redis-server | |
# elasticsearch | |
echo "q" | sudo apt-get install openjdk-7-jre-headless -y | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.5.deb | |
sudo dpkg -i elasticsearch-0.90.5.deb | |
sudo service elasticsearch start | |
SCRIPT | |
.... | |
# Update packages and install stuff | |
config.vm.provision "shell", | |
inline: $script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment