Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
652fab3cf8 |
4
Vagrantfile
vendored
4
Vagrantfile
vendored
@ -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
2
base/Vagrantfile
vendored
@ -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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user