Skip to content

Instantly share code, notes, and snippets.

@michfield
Last active December 10, 2015 22:38
Show Gist options
  • Save michfield/4503066 to your computer and use it in GitHub Desktop.
Save michfield/4503066 to your computer and use it in GitHub Desktop.
Warning grants.sql #chef

This must be AFTER including recipe mysql::server

Chef: Message at compile phase that looks like a warning:

INFO: Could not find previously defined grants.sql resource

Solution: Suppress that message

It is from opscode/mysql Cookbook because some template resource is not specified. So, to solve, just copy the code from recipe, before including opscode/mysql cookbook

template node['mysql']['grants_path'] do
  source "grants.sql.erb"
  cookbook "mysql"
  owner "root"
  group node['mysql']['root_group']
  mode "0600"
  action :create
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment