Skip to content

Instantly share code, notes, and snippets.

@f440
Created June 4, 2012 13:46
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 f440/2868494 to your computer and use it in GitHub Desktop.
Save f440/2868494 to your computer and use it in GitHub Desktop.
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