I started with 

<% if @agent_environment == "production" then -%> 

and this worked. 

But then I needed to add a second possibility, so I tried: 

<% if (@agent_environment == "production" || @agent_environment == 
"dmz_production") then -%> 

and 

<% if ((@agent_environment == "production") || (@agent_environment == 
"dmz_production")) then -%> 

and 

<% if (@agent_environment == "production" or @agent_environment == 
"dmz_production") then -%> 

and 

<% if ((@agent_environment == "production") or (@agent_environment == 
"dmz_production")) then -%> 

and none of the above will work for either value 
My goal is to avoid this: 

<% if @agent_environment == "production" then -%> 
...code... 
<% end -%> 

<% if @agent_environment == "dmz_production" then -%> 
...duplicate code... 
<% end -%> 


Suggestions ? 

“Sometimes I think the surest sign that intelligent life exists elsewhere in 
the universe is that none of it has tried to contact us.” 
Bill Waterson (Calvin & Hobbes) 

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/846313023.4837774.1386093262454.JavaMail.root%40sz0126a.westchester.pa.mail.comcast.net.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to