On Tue, Mar 4, 2014 at 7:52 AM, Peeyush Gupta <
" href="mailto:
">
> wrote:
> I am using mysql
cookbooks, but my repo doesn't have a mysql package,
> instead we have community-mysql package. I want to know how can I change
> mysql into community-mysql. One option is I will have to write a new
> cookbook, but then there are a lot of dependencies issue. I tried to make
> some changes, like putting community-mysql in place of mysql in recipes and
> uploaded the cookbooks, but it didn't work. My server shows the modified
> cookbooks, but the synchronized (?) cookbooks on my machine are still the
> old version. I even deleted the cached cookbooks, but still I am getting the
> same result.
What platform are you on? Fedora? There's been a lot of discussion
about how to modify Chef's MySQL cookbook to run on Fedora now that
it's moving to
MariaDB.
https://tickets.opscode.com/browse/COOK-4259
> How is it that there are different cookbooks on server and client?
The server can store multiple cookbook versions. You can read about
cookbook versioning here:
http://docs.opscode.com/essentials_cookbook_versions.htmlMaybe the "version" that you've uploaded isn't the highest version on
the server and the client isn't replacing it's version. Or maybe the
cookbook isn't specifically listed in the run list on the node
(client) and it is getting the
cookbook through a dependency in
another cookbook, which is specifying a version.
You can use "knife cookbook show mysql" to list the versions of the
mysql cookbooks on the server and then use "knife cookbook delete
COOKBOOK_NAME COOKBOOK_VERSION" to delete specific versions of a
cookbook off of the server.
http://docs.opscode.com/knife_cookbook.htmlYou can also run the chef-client in debug mode using "chef-client -l
debug" which will provide additional output in regard to what the
client is downloading and running.
Bryan