berkshelf / ridley

A reliable Chef API client with a clean syntax
Other
231 stars 85 forks source link

global chefignore, or useful default #300

Closed petere closed 8 years ago

petere commented 9 years ago

It would be useful to be able to have a global chefignore file, under ~/.chefignore or perhaps ~/.chef/chefignore or whatever.

Alternatively, ridley could have a more useful default set of ignores, so that the need for having a manual chefignore at all might go away.

First, I need to ignore editor temporary files. This is not something that the cookbook determines, but my environment, so it doesn't belong in the cookbook's chefignore. This is super-annoying, because it basically means you can't keep editing the cookbook while test-kitchen runs (without changing the editor configuration).

Second, because of the way I manage my repositories, some files under .git are relative symlinks. Apparently, ridley copies the entire cookbook to a staging directory before uploading, and that breaks the symlinks. I want to globally ignore the .git directory, or alternatively VCS directories should be ignored by default.

reset commented 9 years ago

@petere I think that this is a good idea with good intentions and was something that I briefly considered a while back. There are two reasons it's not included in Ridley or Berkshelf:

If you'd like to see this added I would recommend opening up a discussion on the Chef issue tracker instead of here. If it gets added then I'll update Ridley to leverage it ;).