Instantly share code, notes, and snippets.

Embed
What would you like to do?
Vagrant setup to install Cassandra (http://community.opscode.com/cookbooks/cassandra). This configuration shows that installation won't work.
cookbook "cassandra", "= 0.2.4"
# -*- 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 = {
:java => {
'install_flavor' => 'oracle',
'oracle' => {
'accept_oracle_download_terms' => true
}
}
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment