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

Getting cookbooks from git repo by default #95

Open
joevandyk opened this issue Aug 6, 2012 · 1 comment
Open

Getting cookbooks from git repo by default #95

joevandyk opened this issue Aug 6, 2012 · 1 comment

Comments

@joevandyk
Copy link

Hi,

This might be asked in another ticket, but I'm not sure.

I have a git repo on github with a bunch of cookbooks in subdirectories. Right now, to use each of the custom cookbooks, I have to add a line in the Cheffile for each cookbook, like:

cookbook "fixie", :git => "https://github.com/joevandyk/chef-cookbooks", :path => "fixie"
# The above cookbook requires a bunch of other cookbooks in that git repo
cookbook "hostname", :git => "https://github.com/joevandyk/chef-cookbooks", :path => "hostname"
cookbook "apt", :git => "https://github.com/joevandyk/chef-cookbooks", :path => "apt"
# and so on for 20 more cookbooks...

I'd really like a way for librarian to search https://github.com/joevandyk/chef-cookbooks for cookbooks before it searches the default opscode one.

@rindek
Copy link

rindek commented Jan 28, 2013

I had same issue but I found out that you can do the following:

git "https://github.com/joevandyk/chef-cookbooks"

cookbook "fixie"
cookbook "hostname"
cookbook "apt"
...

site 'http://community.opscode.com/api/v1'
cookbook 'whatevercookbookfromopscode'

I know it's 6 months late response, but maybe it'll help

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