Skip to content
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

Open
joelmoss opened this issue May 23, 2014 · 9 comments
Open

Read from chef server? #126

joelmoss opened this issue May 23, 2014 · 9 comments

Comments

@joelmoss
Copy link

Seems spork is only built to read from local chef repo. Is it possible for it to read from the Chef server instead?

@jonlives
Copy link
Owner

@joelmoss can you clarify this a little please? What do you want it to read from the chef server?

@joelmoss
Copy link
Author

Well correct me if I am wrong, but spork only reads cookbooks from my local chef repo, and not the server.

Keep getting this...

$ knife spork check nginx
ERROR: Chef::Exceptions::CookbookNotFound: Could not find cookbook 'nginx' in any of the sources!

@jonlives
Copy link
Owner

@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?

@joelmoss
Copy link
Author

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.

@jonlives
Copy link
Owner

@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?

@joelmoss
Copy link
Author

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.

@jonlives
Copy link
Owner

@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.

@joelmoss
Copy link
Author

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.

@jonlives
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants