-
Notifications
You must be signed in to change notification settings - Fork 97
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
Read from chef server? #126
Comments
@joelmoss can you clarify this a little please? What do you want it to read from the chef server? |
Well correct me if I am wrong, but spork only reads cookbooks from my local chef repo, and not the server. Keep getting this...
|
@joelmoss if you're getting that error it means that spork can't find the cookbook in your local repo either - is the correct directory definitely configured in knife.rb? |
yeah, so that is why I was asking if spork could read the cookbook metadata from the server instead. I use Berkshelf, so don't store cookbooks in my chef repo. |
@joelmoss ah yeah - @sethvargo is hopefully going to be looking at Berkshelf 3 compatibility for spork at some point. Spork is basically predicated on working from a local repo and uploading to a chef server. I guess it'd be possible to have it only read from the server - I'd be interested to hear a little more about what you'd be looking for check to tell you then - just the versions uploaded to the server? |
The main issue for me right now is that due to all these new tools around for working with chef, the disparity between the chef repo and server is increasing. So my dilemma is knowing which source is authorative at any given time. Would love to know your thoughts on this. |
@joelmoss we actually had the same issue - we have a jenkins job triggered by a post-commit hook on our chef git repo which runs https://github.com/bmarini/knife-inspect to check the repo and server are in sync. If it's not, people get emailled / alerted etc to fix it. |
Kinda makes me think the chef repo s becoming a little redundant. There are fewer and fewer reasons for me to use the repo. Knife, Berkshelf and tools like Spork could be enough. |
Depends on your use case - in our case, we have ~40 people making chef changes, so the repo is essential, plus gives history of changes for non-versioned stuff like roles and databags. |
Seems spork is only built to read from local chef repo. Is it possible for it to read from the Chef server instead?
The text was updated successfully, but these errors were encountered: