[chef] Re: Re: Re: Re: mysql and root password


Chronological Thread 
  • From: S Ahmed < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: mysql and root password
  • Date: Mon, 16 Apr 2012 11:02:22 -0400

BUT, I just tried adding the default in my role like:

name 'webserver'
description 'web server role for serving http requests'
run_list "recipe[nginx]" , "recipe[redis]", "recipe[mysql::server]", "recipe[mysql::client]", "recipe[mongodb]"

default_attributes "mysql" => { "server_root_password" => "123" }

And it didn't pickup the password and I get the same error as before.

It worked when I added the default in the mysql cookbook attribute file, i.e.:

default['mysql']['server_root_password'] = '123'

I'm probably doing somethign wrong though :)


On Mon, Apr 16, 2012 at 10:36 AM, S Ahmed < "> > wrote:
Brian,

I just tested it and it worked for me fine (setting the root password).
I'm on ubuntu 10.10, running chef 10.8 on a fresh server with the mysql cookbook from opscode.


On Mon, Apr 16, 2012 at 10:19 AM, Bryan McLellan < " target="_blank"> > wrote:
On Mon, Apr 16, 2012 at 1:42 AM, David Montgomery
< " target="_blank"> > wrote:
> I set default['mysql']['server_root_password']='test123' attributes
> file and will not work on ubuntu.  Anyway to get tat aspect to work?

That's hard to say without knowing what your environment is. Please
provide information regarding what is unique about your system. What
version of Ubuntu? What version of the MySQL cookbook? Was this a
fresh system, or did you already have the mysql-server package
installed? What version of Chef?

Bryan





Archive powered by MHonArc 2.6.16.

§