Re: [Puppet Users] erb syntaxes

2012-09-03 Thread Choon Ming Goh
Hey, Thanks it works! Funny that it didnt work before this as I swore I tried it too. my luck maybe. On Monday, September 3, 2012 12:14:54 PM UTC+8, Gonzalo wrote: > > On Mon, Sep 3, 2012 at 1:31 PM, Choon Ming Goh > > > wrote: > >> Hi guys, >> >> I'm trying to do the following in my template:

Re: [Puppet Users] erb syntaxes

2012-09-02 Thread Gonzalo Servat
On Mon, Sep 3, 2012 at 1:31 PM, Choon Ming Goh wrote: > Hi guys, > > I'm trying to do the following in my template: > > location <%= location %> { > proxy_pass <%= proxy %>; > <% if scope.lookupvar('nginx::resource::location::proxy_header') then > scope.lookupvar('nginx::resource

[Puppet Users] erb syntaxes

2012-09-02 Thread Choon Ming Goh
Hi guys, I'm trying to do the following in my template: location <%= location %> { proxy_pass <%= proxy %>; <% if scope.lookupvar('nginx::resource::location::proxy_header') then scope.lookupvar('nginx::resource::location::proxy_header').each do |header| %> proxy_set_header