[chef] Re: Re: Community-mysql instead of mysql


Chronological Thread 
  • From: Peeyush Gupta < >
  • To: " " < >
  • Subject: [chef] Re: Re: Community-mysql instead of mysql
  • Date: Wed, 5 Mar 2014 14:23:34 +0800 (SGT)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=ymail.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=gCp42Hw5WMdCttugMb6DFvutnqwMjUd/GEwxR/QhFJP0OOElTquOO8wrVrzRJR6BPmdFO0FroKBDMrJdSAjV3KoA+fRNZYHGgi8moCYyVj/ZALQ76qNchWvqOkm4fUyEt94i+3+xW1d0WUxYora/dbd+iv+ljOXIABX7B522YqM=;

Hi Bryan,

Thanks for the reply. Yes, I am using Fedora and the repo has mariadb and community-mysql.
Though I have one more doubt, when I run chef-client, the cookbook install community-mysql as
an mysql provider, but gives error at installing mysql-devel. My point is if the cookbook can identify
community-mysql as mysql provider, why can't it recognize community-mysql-devel? 
Any yeah, I do have multiple versions of mysql on my server, will try to resolve the issue by handling 
dependencies.
 
Thanks,
~Peeyush Gupta


On Wednesday, 5 March 2014 3:26 AM, Bryan McLellan < > wrote:
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.html

Maybe 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.html

You 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






Archive powered by MHonArc 2.6.16.

§