Skip to content

Instantly share code, notes, and snippets.

@dominicumbeer
Created January 19, 2014 18:30
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 dominicumbeer/8508922 to your computer and use it in GitHub Desktop.
Save dominicumbeer/8508922 to your computer and use it in GitHub Desktop.
Install a single-node Cassandra cluster with Chef in Vagrant.
cookbook "cassandra", git: "https://github.com/michaelklishin/cassandra-chef-cookbook.git", ref: "e8f260247b9a4897255d2821daeed129a5a352a0"
# -*- 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|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.berkshelf.enabled = true
config.omnibus.chef_version = :latest
config.vm.provision "shell", inline: "sudo apt-get update"
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024"]
end
config.vm.provision :chef_solo do |chef|
chef.add_recipe "cassandra"
chef.json = {
:cassandra => {
:version => "1.2.13",
:listen_address => 'localhost',
:broadcast_address => 'localhost',
:rpc_address => 'localhost'
}
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment