vagrant icon indicating copy to clipboard operation
vagrant copied to clipboard

Vagrant Docs: Inconsistency in Chef JSON Configuration

Open pattern opened this issue 15 years ago • 3 comments

While looking at how to extend the JSON that Chef Solo uses - I referenced this page of documentation. In the second block of code under the "JSON Configuration" heading, there is a mention of merge in a comment, and indeed merge appears in the default-generated Vagrantfile, but the code sample in the docs has a different method of setting chef.json. It is unclear which method should be used, or if indeed they both work in different ways.

pattern avatar Jul 28 '11 18:07 pattern

I'll fix this up, this is new since the latest version of Vagrant. Thanks.

mitchellh avatar Jul 30 '11 16:07 mitchellh

Fixed and pushed.

mitchellh avatar Jul 30 '11 17:07 mitchellh

Perfect!

Also, I'm not sure if this e-mail is the right channel for this, but I stumbled upon this Vagrantfile: https://github.com/scalarium/cookbooks/blob/master/Vagrantfile and the solution of pulling in a JSON file and parsing it for use by vagrant's Chef implementation is what I ended up using. This lets me maintain a node.json file, which makes me feel better because it's more portable than the same data stored in a Vagrantfile in a Ruby hash.

I feel like it might be useful to note this method in the documentation, as it may increase Vagrant adoption.

Thanks again for Vagrant; I've only been fiddling around with it for about a week now, but I'm a huge fan :) You inspired me to finally create a GitHub account, and start being proactive with the open source projects I use. I'm still a little rusty with Git - once I'm up to speed I will be able to submit code changes confidently.

-Jeff

On Sat, Jul 30, 2011 at 10:29 AM, mitchellh [email protected] wrote:

Fixed and pushed.

Reply to this email directly or view it on GitHub: https://github.com/mitchellh/vagrant/issues/442#issuecomment-1688917

pattern avatar Jul 30 '11 18:07 pattern