Last active
November 29, 2017 15:04
-
-
Save toshimasa-nanaki/656beb5c53f6805619039a30725bbdaf to your computer and use it in GitHub Desktop.
Vagrantfile サンプル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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