I'm trying this line on my my.cnf.erb file: <% case memorysize when /<=4/ %> max_allowed_packet=8M <% case memorysize when />4<=8/ %> max_allowed_packet=16M <%end%>
I got the syntax from a different post. still not working thought. On Jun 21, 11:07 am, CraftyTech <[email protected]> wrote: > Hello All, > > Can you guys point out to me, how do I do a case statement within > a template? i.g: my.cnf > > max_allowed_packet=<% case ($memorysize<=4) = 8M, case > ($memorysize<=8) = 16M)? > > I've tried different combinations, but so far no luck. The syntax > checker coughs up hair balls.... > > Thanks, > > Henry -- 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 http://groups.google.com/group/puppet-users?hl=en.
