Am Mittwoch, 2. April 2014 12:13:20 UTC+2 schrieb Sandro von Matterhorn:
>
> Hi,
>
> when I use a template with such code:
>
> <% if @LDAPpuppetVar %>
> do something
> <% end %>
>
> it works in a way: If the puppetVar in LDAP exist, than do something, else 
> ignore.
>
> But how could I manage, that if the puppetVar in LDAP exist than do 
> something, else do something other?
>


Okay, I got it, it's quite simple. ;-)

 <% if @LDAPpuppetVar %>
do something
<% else %>
do something else
<% end %>

But why is there no sample for this in the puppet docu? :-(

-- 
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/feac9b38-0f18-456a-b6a0-c97978b08daa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to