Skip to content

Instantly share code, notes, and snippets.

@toshimasa-nanaki
Last active November 29, 2017 15:04
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 toshimasa-nanaki/656beb5c53f6805619039a30725bbdaf to your computer and use it in GitHub Desktop.
Save toshimasa-nanaki/656beb5c53f6805619039a30725bbdaf to your computer and use it in GitHub Desktop.
Vagrantfile サンプル
# coding: utf-8
Vagrant.configure("2") do |config|
config.vm.provider :virtualbox do |v|
v.name = "centos7_test"
v.customize ["modifyvm", :id, "--memory", 2048]
end
config.vm.box = "centos/7"
config.vm.hostname = "vagrant-test"
config.vm.network :private_network, ip: "192.168.33.102"
config.ssh.forward_agent = true
config.vm.synced_folder "share/", "/vagrant", type: "rsync"
config.vm.provision "shell", inline: <<-SHELL
/vagrant/init.sh
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment