On Mon, Mar 16, 2009 at 08:48:13AM -0700, TomTom wrote:
> 
> Hi Bruce,
>  Thanks for the snappy reply.
>  I need to create X number of mysql_X directories under /data01/
> multi_mysql/. Sometimes I might need to only create one instance,
> sometimes I might need to create as many as 10. How can I craft a
> flexible class that will create and install X number?
> For example
> /data01/multi_mysql/mysql_A
> /data01/multi_mysql/mysql_B
> /data01/multi_mysql/mysql_C
> /data01/multi_mysql/mysql_D
> /data01/multi_mysql/mysql_E
> /data01/multi_mysql/mysql_F
> /data01/multi_mysql/mysql_G
> /data01/multi_mysql/mysql_H

You create a definition that can create one instance and doesn't clash
with others.  Then you define all your directories at once like this:

mysql_instance { ['mysql_A', 'mysql_B', 'mysql_C']:
        data_dir    => '/data01/multi_mysql',
        parameter1 => 'whatever',
        parameter2 => 'whatever_next',
}

If you follow either of my recommendations for avoiding the data_dir
clash, it will work fine.

-- 
Bruce

I unfortunately do not know how to turn cheese into gold.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to