Skip to content

Instantly share code, notes, and snippets.

@gerritjvv
Created September 2, 2014 08:54
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 gerritjvv/32f2de73ff3931453380 to your computer and use it in GitHub Desktop.
Save gerritjvv/32f2de73ff3931453380 to your computer and use it in GitHub Desktop.
Cassandra Vagrant File
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--memory", "2048"]
v.customize ["modifyvm", :id, "--cpus", "2"]
v.customize ["modifyvm", :id, "--ioapic", "on"]
end
config.vm.box = "CentOS 6.5 x86_64"
config.vm.box_url = "https://github.com/2creatives/vagrant-centos/releases/download/v6.5.3/centos65-x86_64-20140116.box"
config.vm.boot_timeout = 600
config.vbguest.auto_update = true
config.vm.define "dsedev-1", primary: true do |node|
node.vm.network :private_network, ip: "192.168.3.10"
node.vm.hostname = "dsedev-1"
node.vm.synced_folder ".", "/vagrant", owner: "vagrant", group: "vagrant", :mount_options => ["dmode=777","fmode=777"]
node.vm.provision :shell, :path => "./bootstrap.sh", :args => ["dsedev-1"]
end
config.vm.define "dsedev-2", autostart: false do |node|
node.vm.network :private_network, ip: "192.168.3.11"
node.vm.hostname = "dsedev-2"
node.vm.synced_folder ".", "/vagrant", owner: "vagrant", group: "vagrant", :mount_options => ["dmode=777","fmode=777"]
node.vm.provision :shell, :path => "./bootstrap.sh", :args => ["dsedev-2"]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment