Hi
I am very new to puppet and wants to implement something like this in my 
puppet template (erb file)

the logic i am trying to do is :

 sssd_count=`rpm -qa | grep 'sssd' | wc -l`

<% if  sssd_count =2 -%>
session     optional      sss.so
<% else %>
session     optional      pam_ldap.so
<% end -%>

but the backtick does not work.. or i am unable to store the expected value 
in to sssd_count
is there any other way to perform this task ??

I will be really grateful if i can get some help .. 

Thanks



-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to