Machine prefix should be configurable #121
Comments
|
Hi James, There are three different names that I can think of:
So in this example
1 is "host_name", 2 is "vagrant_name", and 3 is "my_project_vagrant_name". What you're interested in setting is 3, right? I see where this was added for virtualbox as the method name. Adding the same to vagrant-libvirt should be easy. If you're interested, I can let you know how to get started developing this. |
Right! Thanks for pointing me to the virtualbox equivalent patch. I'll have a look at this, and put this type of patch on my TODO list. If you have comments to add for the patch, please let me know, and I'll be sure to take them into account when hacking. As a side note, instead of 2, I actually use 'vagrant_name.vm.hostname' as seen in: Not sure if they are equivalent, but it seems to do the trick. |
|
If you wanted to develop this, you'd need to
Hopefully I'm not forgetting anything. Let me know if you run in to any trouble. |
|
Okay, I've got a patch for what I'd like to implement: I also think as a second patch it would make sense to also add a 'vm.name' support, like the virtualbox provider does, but that's a second issue. Actually, when I tried to add a 'name' property, it got blocked: There are errors in the configuration of this machine. Please fix the following errors and try again: vm: * The following settings shouldn't exist: name I guess it's some sort of reserved value, and there's a special way to implement this. In any case, please merge the prefix patch or let me know if there are any issues. Cheers, cc: @pradels |
purpleidea
referenced
this issue
Jan 12, 2014
Merged
Add provider specific default_prefix option. #122
|
Since this is merged are we ready to close this issue? |
|
Of course :) |
purpleidea commentedJan 7, 2014
When you are in a vagrant project dir called 'foo', and you start a machine named 'bar', the image file created is named foo_bar.img, and the vm name used is foo_bar.
I think other providers call this vm.name = 'foo_bar' or something. Not sure exactly.
In any case, it would be nice to support this functionality. I'm told it's standard.
If it exists, and I don't know the name for it, then sorry for the noise.
Cheers,
James