[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: [Puppet Users] Example42 MySQL puppet-module Felix Frank Tue Feb 21 04:00:08 2012


On 02/10/2012 03:09 AM, Will S. G. wrote:
> Hi there,
> I thought I understood how this module works, but I guess I missed
> something. Here is what I have in my nodes.pp
> node 'mysql' inherits default {
>         include mysql
>         mysql::user { "db1":
>                 mysql_password_hash => "db1",
>                 mysql_user => "db1",
>                 mysql_host => "%"
>         }
>         mysql::grant { "db1":
>                 mysql_privileges => "ALL",
>                 mysql_password => "password",
>                 mysql_db => "db1",
>                 mysql_user => "db1",
>                 mysql_host => "%"
>         }
> }
> That works perfectly. What I want to do is expand this to be able to
> setup additional users and grants. I thought adding more lines for
> mysql::user & mysql::grant to do more users.
> Any suggestions how I do this? I'm at a bit of a loss how to handle
> multiple users and grants.

can you rephrase your question to make it more specific?

Obviously copy'n'paste will work to duplicate your efforts to new areas.
There are good reasons not to do this, but I'm curious what exactly you
need to do that makes you ask for better ways.


You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at