Skip to content

Instantly share code, notes, and snippets.

@hagino3000
Created August 11, 2013 09:57
Show Gist options
  • Save hagino3000/6204252 to your computer and use it in GitHub Desktop.
Save hagino3000/6204252 to your computer and use it in GitHub Desktop.
Vagrant file for RabbitMQ Cluster testing
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu-12.04-x64"
config.vm.define :ap_server1 do |ap|
ap.vm.hostname = "ap1"
ap.vm.network :private_network, ip: "192.168.50.13"
end
config.vm.define :ap_server2 do |ap|
ap.vm.hostname = "ap2"
ap.vm.network :private_network, ip: "192.168.50.14"
end
config.vm.define :cluster1 do |cluster|
cluster.vm.hostname = "rabbit1"
cluster.vm.network :private_network, ip: "192.168.50.15"
end
config.vm.define :cluster2 do |cluster|
cluster.vm.hostname = "rabbit2"
cluster.vm.network :private_network, ip: "192.168.50.16"
end
config.vm.define :worker1 do |worker|
worker.vm.hostname = "worker1"
worker.vm.network :private_network, ip: "192.168.50.17"
end
config.vm.define :worker2 do |worker|
worker.vm.hostname = "worker2"
worker.vm.network :private_network, ip: "192.168.50.18"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment