Here is a sample of how I use a definition and the databases cookbook to handle creating multiple databases/users:
https://gist.github.com/jwitrick/7218037
Justin
-----Original Message-----
From: "Eric Feldhusen" <
>
Sent: Tuesday, October 29, 2013 12:01pm
To:
Subject: [chef] Re: Re: Help using chef community mysql cookbook for idempotent chef-client runs
Hey Eric,Have you tried checking out the database cookbook? https://github.com/opscode-cookbooks/databaseThere are LWRPs that should help you do what you are looking to do.
Tom Duffield — Automation Consulting Engineer
651.769.7497 – " target="_blank"> – my: Linkedin Twitter
OPSCODE
CODE CAN
opscode.com Blog Facebook Twitter YouTube
On Mon, Oct 28, 2013 at 9:26 AM, Eric Feldhusen < " target="_blank"> > wrote:
I'm been working my way through using various chef community cookbooks, but I'm a little stuck on using the mysql cookbook.I can install the MySQL service fine, but I'm having trouble with creating users and database(s) in a way that's idempotent once the users and databases are there.Also, is there a way to import a schema or an existing database dump file that I have copied to the client from the chef server?Thanks for any suggestions.Eric Feldhusen
Archive powered by MHonArc 2.6.16.