Where to put the node.json in the chef-repo for chef-solo


#1

Seem the default repo on github didn’t take care of storing the node.json
in the repository.

e.g. https://github.com/opscode/chef-repo

What folder should I put my node.json?

(I think this file should also be maintained in the repo, right?)

Thanks.


#2

On Wed, Feb 27, 2013 at 10:31 AM, howard chen howachen@gmail.com wrote:

Seem the default repo on github didn’t take care of storing the node.json
in the repository.

e.g. https://github.com/opscode/chef-repo

What folder should I put my node.json?

(I think this file should also be maintained in the repo, right?)

Yes, I think with chef-solo, the node.json is part of your repo.

It may contain the configuration of your cookbooks and the run_list.
However, there are different use-cases.

If you work with Vagrant, you might put part of your node.json directly
into your Vagrantfile too (that is part of your repo too).

If you invoke chef-solo from your host directly, see some interesting
discussion here:


#3

Check out knife-solo [1], it makes working with chef solo a breeze and
stores the node json in ‘./nodes/.json’

[1] https://github.com/matschaffer/knife-solo
Am 27.02.2013 10:48 schrieb “Patrick Mulder” mulder.patrick@gmail.com:

On Wed, Feb 27, 2013 at 10:31 AM, howard chen howachen@gmail.com wrote:

Seem the default repo on github didn’t take care of storing the node.json
in the repository.

e.g. https://github.com/opscode/chef-repo

What folder should I put my node.json?

(I think this file should also be maintained in the repo, right?)

Yes, I think with chef-solo, the node.json is part of your repo.

It may contain the configuration of your cookbooks and the run_list.
However, there are different use-cases.

If you work with Vagrant, you might put part of your node.json directly
into your Vagrantfile too (that is part of your repo too).

If you invoke chef-solo from your host directly, see some interesting
discussion here:
http://serverfault.com/questions/126298/idiomatic-way-to-invoke-chef-solo