New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vagrant.Environment property :vagrantfile_name does not work as expected #778
Comments
Sorry, where is this documentation? |
Line 22 in lib/vagrant/environment.rb |
Can you show me how you're setting up the env? |
require 'vagrant'
env = Vagrant::Environment.new( :vagrantfile_name => File.dirname(__FILE__) + '/non_standard_name' )
env.cli('up') The output I receive is:
|
Ah hah! The issue is that
|
I'll add validation for this case. |
Actually it didn't fix anything. Researching more. |
mitchellh
added a commit
that referenced
this issue
Mar 8, 2012
Now I really fixed it. :) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
According to the documentation :vagrantfile_name is "The valid name for a Vagrantfile for this environment". Which, IMO, means that setting this will just tell Vagrant to load the file at the provided path instead of Vagrantfile or vagrantfile. However, in my tests this causes env.cli('up') to fail with
vm: * Base MAC address for eth0/NAT must be set. Contact box maintainer for more information.
regardless of value.
Setting this property appears to also modify the vagrant home and root paths. Which is not as expected.
Note the "Set :root" and "Set :home". This I find to be odd.
The text was updated successfully, but these errors were encountered: