Did you try assigning the @domain_suffix to a local variable in the 
embedded Ruby and see if that would permit it to do as you want? 

On Friday, August 18, 2017 at 8:02:59 PM UTC-4, John wrote:
>
>  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/7c717cd1-a3d0-4efb-914d-ae0b54a4cba3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to