With chef generate app, cookbook folder not added to git


#1

Hi!

I’m using chef-dk, and when I chef generate app foo, I see that the only these
files are added to git:

– .gitignore
– .kitchen.yml
README.md

The cookbooks folder is ignored in .gitignore. Is it intended?

foo
├── cookbooks
│ └── foo
│ ├── Berksfile
│ ├── chefignore
│ ├── metadata.rb
│ └── recipes
│ └── default.rb
├── .gitignore
├── .kitchen.yml
└── README.md

Should I git init inside the cookbooks folder and version control the cookbooks
separately?

Thank you

David Gil


#2

On Monday, May 12, 2014 at 1:23 AM, dgilo@aemet.es wrote:

Hi!

I’m using chef-dk, and when I chef generate app foo, I see that the only these
files are added to git:

– .gitignore
– .kitchen.yml
README.md (http://README.md)

The cookbooks folder is ignored in .gitignore. Is it intended?

foo
├── cookbooks
│ └── foo
│ ├── Berksfile
│ ├── chefignore
│ ├── metadata.rb
│ └── recipes
│ └── default.rb
├── .gitignore
├── .kitchen.yml
└── README.md (http://README.md)

Should I git init inside the cookbooks folder and version control the cookbooks
separately?

Thank you

David Gil
Oops, that’s a mistake. Should be easy to patch, just remove it from this file: https://github.com/opscode/chef-dk/blob/master/lib/chef-dk/skeletons/code_generator/files/default/gitignore

Thanks,


Daniel DeLeo