i have this bit of code here <% @microservices.sort.each do |service,val| -%> upstream <%= service %> { server <% val['endpoint']['{domain_suffix}'] = "@domain_suffix" -%> resolve; } <% end -%>
i'm trying to do a string replacement of the @domain_suffix puppet fact, however ruby requires quotes around this value. however, with the quotes, that value cannot be rendered in the template. i'm sure ruby can do this another way however i don't know it very well. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/3602cd93-e227-4b40-b824-75390abdd792%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.