Skip to content

Instantly share code, notes, and snippets.

@kellydunn
Created December 13, 2013 23:42
Show Gist options
  • Save kellydunn/7953575 to your computer and use it in GitHub Desktop.
Save kellydunn/7953575 to your computer and use it in GitHub Desktop.
# Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "default"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.synced_folder ".", "/vagrant_data"
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "chef/cookbooks"
chef.add_recipe "gandalf"
end
en
# Stacktrace
================================================================================
Recipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/sm-mysql/attributes/server.rb
================================================================================
Chef::Exceptions::CookbookNotFound
----------------------------------
Cookbook mysql not found. If you're loading mysql from another cookbook, make sure you configure the dependency in your metadata
Cookbook Trace:
---------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/sm-mysql/attributes/server.rb:3:in `from_file'
Relevant File Content:
----------------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/sm-mysql/attributes/server.rb:
1: # include attributes from cookbook being wrapped before ours, so we can
2: # override them without resorting to increasing attribute precedence.
3: include_attribute 'mysql::server'
4:
5: default['sm-mysql']['innodb_buffer_pool_percent_mem'] = 75
6:
7: default['mysql']['bind_address'] = node['ipaddress']
8: default['mysql']['remove_test_database'] = true
9:
[2013-12-13T23:38:51+00:00] ERROR: Running exception handlers
[2013-12-13T23:38:51+00:00] ERROR: Exception handlers complete
[2013-12-13T23:38:51+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2013-12-13T23:38:51+00:00] FATAL: Chef::Exceptions::CookbookNotFound: Cookbook mysql not found. If you're loading mysql from another cookbook, make sure you configure the dependency in your metadata
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment