Skip to content

Instantly share code, notes, and snippets.

@f440
Created Jun 4, 2012
Embed
What would you like to do?
Example for glusterfs
# 仮想マシン1-3はそれぞれ192.168.56.10,192.168.56.11,192.168.56.12にした
# (ホストマシンは 192.168.56.1)
Vagrant::Config.run do |config|
config.vm.define :host1 do |host1|
host1.vm.box = "CentOS-6.2-x86_64-minimal"
host1.vm.network :hostonly, "192.168.56.10"
end
config.vm.define :host2 do |host2|
host2.vm.box = "CentOS-6.2-x86_64-minimal"
host2.vm.network :hostonly, "192.168.56.11"
end
config.vm.define :host3 do |host3|
host3.vm.box = "CentOS-6.2-x86_64-minimal"
host3.vm.network :hostonly, "192.168.56.12"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment