thanks for your answer, i finally wrote <% if architecture == i386 %> stuff <%else%> stuff <%end%>
2011/6/14 Ken Barber <k...@puppetlabs.com> > Try: > > <% if ["x86_64","amd64"].include?(architecture) %> > ... do stuff ... > <% end %> > > ken. > > On Tue, Jun 14, 2011 at 11:30 AM, romuald FREBAULT <kurgan...@gmail.com> > wrote: > > Hi, > > > > I have a recipe that deploy a nrpe_local.cfg. > > In my template, i want to deploy diffrent lines between 32 and 64 bits. > > > > We have hosts uder redhat and debian,. > > When i write <% if architecture == "i386" -%> > > no problem, the lines are well deployed on redhat and debian, but for the > 64 > > bits, redhat call the architecture x86_64 and debian amd64... > > i tried to make an array like this > > <% if architecture == "x86_64", "amd64" -%> > > or like this > > <% if architecture == "x86_64, amd64" -%> > > or > > <% if architecture == "x86_64" | "amd64" -%> > > > > and many other tries, but i couldn't get it to work... > > > > does anyone knows how i could solve my problem? > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Puppet Users" group. > > To post to this group, send email to puppet-users@googlegroups.com. > > To unsubscribe from this group, send email to > > puppet-users+unsubscr...@googlegroups.com. > > For more options, visit this group at > > http://groups.google.com/group/puppet-users?hl=en. > > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.