This commit is contained in:
elvin-henry 2018-11-02 23:49:09 +08:00
parent a037b0fffc
commit 652fab3cf8
2 changed files with 3 additions and 3 deletions

4
Vagrantfile vendored
View File

@ -45,8 +45,8 @@ Vagrant.configure("2") do |config|
# do NOT check the correct additions version when booting this machine插件安装vagrant plugin install vagrant-vbguest # do NOT check the correct additions version when booting this machine插件安装vagrant plugin install vagrant-vbguest
cfg.vbguest.auto_update = false cfg.vbguest.auto_update = false
cfg.vm.synced_folder "/Users/ehlxr/works/Vagrant/vm_share", "/root/" cfg.vm.synced_folder "E:\\ehlxr\\Vagrant", "/vagrant", disabled: true
cfg.vm.synced_folder "/Users/ehlxr/works/Vagrant", "/vagrant", disabled: true cfg.vm.synced_folder "E:\\ehlxr\\Vagrant\\vm_share", "/root"
# 开机运行命令 # 开机运行命令
cfg.vm.provision "shell", run: "always", inline: <<-SHELL cfg.vm.provision "shell", run: "always", inline: <<-SHELL

2
base/Vagrantfile vendored
View File

@ -3,7 +3,7 @@ Vagrant.configure("2") do |config|
config.vm.box = "centos-7.2" config.vm.box = "centos-7.2"
config.vm.network "private_network", ip: "192.168.3.3" config.vm.network "private_network", ip: "192.168.3.3"
config.vbguest.auto_update = false config.vbguest.auto_update = false
config.vm.synced_folder "/Users/ehlxr/works/Vagrant", "/vagrant" cfg.vm.synced_folder "E:\\ehlxr\\Vagrant", "/vagrant"
# 自定义初始化执行脚本 # 自定义初始化执行脚本
config.vm.provision "shell", path: "../config/init.sh" config.vm.provision "shell", path: "../config/init.sh"