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.