-
Notifications
You must be signed in to change notification settings - Fork 163
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
with_chef_local_server can't find vendored cookbook #163
Comments
Yep, what I'm hearing is the most recent cheffish broke that: chef/cheffish#22 . I won't be able to look into it for a couple of hours, but ... is the "stage" cookbook in your vendored directory too? Can you set your chef_repo_path there for now? |
i.e. just have one path, "vendored" |
I think I'll give that a try and wait for your fix, whatever that ends up being. Unless I clean up the |
All right, I gave it a go. Didn't work, but I'm not confident I'm doing this right. Here's the rundown... I created a directory structure like this:
Then I vendored by cookbooks into a
Then I ran my converge recipe from inside the require 'chef_metal'
with_driver 'fog:AWS', :compute_options => { :aws_access_key_id => '...', :aws_secret_access_key => '...' }
with_chef_local_server :chef_repo_path => '/Users/me/project_root/pipe', :cookbook_path => '/Users/me/project_root/pipe/vendored'
machine_batch do
action :converge
machine 'box1' do
recipe 'stage::base'
end
end When I ran that, I got json files in
The The more I think about it, I'm happy to structure my stuff as in this experiment, if I can just get it to work. Not having to specify multiple cookbook paths is fine by me. |
I can confirm after running all day today that I can run with my cookbook dependencies loaded into the
If I set :chef_repo_path for What I'm after, and what I thought
Vendoring to the If I'm after something impossible, let me know, but I really got the impression that what I want to do is perfectly acceptable. |
Setting cookbook paths was broken in the latest cheffish, that's fixed along with multiple cookbook paths in master - should be released soon. Closing. |
Well, that's good news. I await the fix anxiously :) Thanks. |
I created a brand new cookbook called
stage
with Berkshelf. My directory structure looks like this:I already created two machines with a metal recipe. My metal recipe to converge looks like so:
When I run it, I get:
Based on what I've learned from other issues, I think the
:cookbook_path
inwith_chef_local_server
is correct. All of the directories it points to exist.If I run the converge recipe with the apt cookbook in
project_root/cookbooks
, it runs successfully. If I run with the apt cookbook only inproject_root/vendored
, I get the error. This seems like a bug. Please correct me if I've still got something wrong in my setup.The text was updated successfully, but these errors were encountered: