Skip to content

Instantly share code, notes, and snippets.

@murachi1208
Last active August 29, 2015 14:01
Show Gist options
  • Save murachi1208/284b76a54ce7ef34a791 to your computer and use it in GitHub Desktop.
Save murachi1208/284b76a54ce7ef34a791 to your computer and use it in GitHub Desktop.
Vagrantfile サンプル
Vagrant.configure("2") do |config|
config.vm.box = "CentOS6.5"
config.vm.box_url = "https://github.com/2creatives/vagrant-centos/releases/download/v6.5.3/centos65-x86_64-20140116.box"
config.vm.define :web1 do |web1|
web1.vm.network :forwarded_port, guest: 22, host: 2222, host_ip: "127.0.0.1", id: "ssh", auto_correct: true
end
config.vm.define :web2 do |web2|
web2.vm.network :forwarded_port, guest: 22, host: 2223, host_ip: "127.0.0.1", id: "ssh", auto_correct: true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment