On Sun, 2010-12-19 at 04:40 -0600, Spenser Gilliland wrote:
> Matthew,
> 
> I'm a bit confused on your code,  how does an instance get added to the db?

Yeah, that's probably my fault... :D

My thought was that if you have a known path to the redmine instances
you could create a ruby class which iterates over the filesystem and
pulls each directory/installation name into a CSV string.

If you prefix your redmine database names with something obvious when
you install them, then you should be able to connect to the database
server and extract the table names that are relevant using "use
mysql;SELECT tableName from tables where tableName LIKE '%redmine_prefix
%';" or similar.

So the "db" which I spoke of is more of a datastore/list which contains
the currently installed redmine instances - how you retrieve this data
is left as an exercise for the reader... ;)

Cheers,

M.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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