Skip to content

Instantly share code, notes, and snippets.

@timjstewart
Last active December 28, 2015 11:29
Show Gist options
  • Save timjstewart/7494053 to your computer and use it in GitHub Desktop.
Save timjstewart/7494053 to your computer and use it in GitHub Desktop.
Vagrant stuff
if ! grep cassandra /etc/apt/sources.list
then
echo "deb http://www.apache.org/dist/cassandra/debian 10x main" >> /etc/apt/sources.list
echo "deb-src http://www.apache.org/dist/cassandra/debian 10x main" >> /etc/apt/sources.list
gpg --keyserver wwwkeys.pgp.net --recv-keys 4BD736A82B5C1B00
apt-key add ~vagrant/.gnupg/pubring.gpg
fi
apt-get update
apt-get install -y openjdk-7-jdk scala emacs23-nox vim-nox
apt-get install -y --force-yes cassandra
cp /vagrant/sbt-launch.jar /vagrant/sbt ~vagrant
chmod 700 ~vagrant/sbt
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise32"
# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
config.vm.define "one" do |one|
one.vm.box = "precise32"
one.vm.provision "shell", path: "bootstrap.sh"
end
config.vm.define "two" do |two|
two.vm.box = "precise32"
two.vm.provision "shell", path: "bootstrap.sh"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment