Hi all,

I'm sure there's an easy way to do this, however I can't work it out!

I've got a custom fact named "mysql_repl_dbs" and is has the databases that a host needs to replicate as a comma separated list.

I want my template for my.cnf to add a replicate-do-db= statement for each of these values, however when ever I try the following:

<% mysql_repl_dbs.split[','].each do | dbname | -%>
replicate-do-db=<%=dbname%>
<% end -%>

I get an error stating that puppet cannot convert a String to an Integer.

There must be a way to do this, but I'm tearing my hair out here!

Thanks in advance,

Matt

--
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