Closed jperville closed 9 years ago
Unfortunately it seems that the type
method came only in Vagrant 1.7, and we don't want to break compatibility with older versions yet.
Did the multi-vm setup work with Vagrant 1.6.5? If yes, we could maybe test if prov.respond_to?(:type)
and use the correct attribute based on that.
Well spotted, I will investigate more during the week-end.
Here is my updated version of this PR, which is backward-compatible with Vagrant 1.6.5 (and probably older versions). After a quick check, it seems that the issue only applies to the chef proxy, so no related PR should be needed.
I have tested the following cases:
vagrant | with fix | without fix |
---|---|---|
1.6.5 | pass | pass |
1.7.1 | pass | break |
Note: results were identical in the single and multi machine cases.
According to mitchellh/vagrant#5069 Vagrant won't provide a backward-compatibility (it would mess the internals too much); plugins must be updated to handle the pre and post vagrant-1.7 cases.
Can you merge this @tmatilai and (if possible) issue an official 1.4.1 release with the recent fixes?
Merged! Thanks!
I'll be mostly offline for the next couple of weeks, but I'll release v1.5 as soon as I have an hour of internet with the laptop. =)
Thank you so much @tmatilai, looking forward to using the new version.
@tmatilai, here is my modest attempt at fixing #101 (where chef provisioner detection was broken in multi-machine Vagrantfiles). I have tested by hand that the PR works in both single-machine and multi-machine modes, with the following
Vagrantfile
:In single-machine mode:
In multi-machine mode:
(without the PR, it would return
nil
as the value of the chef no_proxy in the multi-vm case).Feel free to merge, close #101 and enjoy Christmas @tmatilai.