Hy I'm trying to run a MongoDB recipe with Chef Solo on an Amazon EC2 Linux AMI. I've installed Omnibus, set the cookbook path in the .rb file, and the runlist in the .json file. I've copied the content of the mongodb recipe zip from github to to cookbook folder, and ran the chef-solo command. The result is below:
FATAL: Chef::Exceptions::CookbookNotFound: Cookbook apt not found. If you're loading apt from another cookbook, make sure you configure the dependency in your metadata
I'm pretty new to Linux too, what am I doing wrong here?
The error is pretty descriptive. You likely have a cookbook in your runlist that has depends apt
in its metadata.rb
file.
Luckily, this easy to resolve - just include the apt
cookbook (https://github.com/opscode-cookbooks/apt) in your cookbooks
folder and call it in your runlist (or role, when you get to that level).