Open steversmith opened 7 years ago
The desired vagrantfile would look like this:
Vagrant.configure('2') do |outer_config|
outer_config.vm.define "somemachine" do |config|
config.vm.box = "redhat"
config.vm.synced_folder(",", "/vagrant", disabled: true)
config.vm.hostname = "somemachine"
end
end
A possible fix is to handle the vm.synced_folder setting key in same way as the vm.network setting key
if key == 'vm.network'
if key == 'vm.network' || key=='vm.synced_folder'
If I include a vm.synced_folder setting in vagrant_options, then the resulting vagrant file is invalid, which causes vagrant up to fail.
Example:
The following recipe:
Produces the following vagrant file, which causes vagrant to fail:
The error message from running the recipe: