diff --git a/scripts/homestead.rb b/scripts/homestead.rb index 1fd98ecaf..011db44e6 100644 --- a/scripts/homestead.rb +++ b/scripts/homestead.rb @@ -24,10 +24,16 @@ def self.configure(config, settings) config.vm.hostname = settings['hostname'] ||= 'homestead' # Configure A Private Network IP - if settings['ip'] != 'autonetwork' - config.vm.network :private_network, ip: settings['ip'] ||= '192.168.56.56' + if ['vmware_desktop', 'vmware_fusion'].include? ENV['VAGRANT_DEFAULT_PROVIDER'] + if RUBY_PLATFORM.match(/darwin2/) + config.vm.network :private_network + end else - config.vm.network :private_network, ip: '0.0.0.0', auto_network: true + if settings['ip'] != 'autonetwork' + config.vm.network :private_network, ip: settings['ip'] ||= '192.168.56.56' + else + config.vm.network :private_network, ip: '0.0.0.0', auto_network: true + end end # Configure Additional Networks