Use common provider configuration. Include extra information output for logs.
This commit is contained in:
parent
030a08f869
commit
586ee5bfba
|
@ -15,6 +15,8 @@ then
|
|||
mv "${GEM_PATH}" vagrant-spec.gem
|
||||
fi
|
||||
|
||||
vagrant status --debug
|
||||
|
||||
guests=$(vagrant status | grep vmware | awk '{print $1}')
|
||||
|
||||
vagrant up --no-provision
|
||||
|
|
|
@ -57,13 +57,11 @@ Vagrant.configure(2) do |global_config|
|
|||
config.vm.box_version = box_version
|
||||
config.vm.synced_folder '.', '/vagrant', disable: true
|
||||
config.vm.synced_folder '../../', '/vagrant'
|
||||
[:vmware_workstation, :vmware_fusion].each do |vmware_provider|
|
||||
config.vm.provider vmware_provider do |vmware|
|
||||
config.vm.provider :vmware_desktop do |vmware|
|
||||
vmware.vmx["memsize"] = ENV.fetch("VAGRANT_HOST_MEMORY", "2048")
|
||||
vmware.vmx['vhv.enable'] = 'TRUE'
|
||||
vmware.vmx['vhv.allow'] = 'TRUE'
|
||||
end
|
||||
end
|
||||
if platform == "windows"
|
||||
config.vm.provision :shell, path: "./scripts/#{platform}-setup.#{provider_name}.ps1", run: "once"
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue