-
Notifications
You must be signed in to change notification settings - Fork 189
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
Generated Vagrantfile has type issues #236
Comments
Same issue here, and I can't find the way to pass Here is the kitchen version, as well as the vagrant version:
And also, here is the snippet of the
Hope we can hear some insight how to pass Cheers, |
I just changed
Hope it helps. |
I've temporary patched gem in https://github.com/test-kitchen/kitchen-vagrant/blob/master/templates/Vagrantfile.erb#L57 file: -- c.ssh.<%= key %> = <%= value.inspect %>
++ c.ssh.<%= key %> = <%= [true, false].include?(value) ? value : value.inspect %> |
good to know, @jsirex! Thanks for sharing! By the way, I've tried with ubuntu-1404 and surprisingly it didn't hit the issue... I didn't expect this, as I had an issue with centos-72, just like the custom centos-65... Here is the snippet with ubuntu-1404, for your reference:
|
i mean there is no #130 issue on ubuntu-1404. Obviously, the false string manipulation issue should be platform independent issue, as I didn't have
I'll update #130 regarding platform dependency, instead. |
by the way, @jsirex, do you have a PR for that hack? I know that's a hack but I felt we can get better attention with the PR, than the issue. Thanks for the insight! Kei @ Kitchen/Chef newbie 😃 |
I had the same issue and how this post help me was to realize that the ssh value was being cast as a string and should not be. The sed command didn't work - the command worked but the Vagrant file was regenerated with "false" instead of false. Taking a queue from jsirex I took a look at my Vagrant.erb file and I changed /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/kitchen-vagrant-0.20.0/templates/Vagrantfile.erb From: to Just removed the quotes . . . and kitchen create worked Mac OSX 10.11.6 |
Also spotted this bug when working on tutorials at learn.chef.io. I use additional custom Vagrantfile to make the setting https://gist.github.com/Shkrt/480a9c9a1b91e3bbd9b321c0dbba75c5 |
@jsirex any chance we can get that patch as a PR? otherwise I'll open one myself for this issue. (just want to give you the chance to take credit in code, we'll note your contribution in the commit still if I make it) |
I'm using latest vagrant, test-kitchen, virtualbox. Nothing helps me to bring machine up:
Produces:
Here is false as string
"false"
Relates to #130
The text was updated successfully, but these errors were encountered: