Do you have any machines which show the 32-bit machines as i686? I know at least 32-bit Ubuntu will use that:
nathan@vervain:~$ arch i686 nathan@vervain:~$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=10.04 DISTRIB_CODENAME=lucid DISTRIB_DESCRIPTION="Ubuntu 10.04.2 LTS" nathan@vervain:~$ -- Nathan Clemons http://www.livemocha.com The worlds largest online language learning community On Wed, Jun 15, 2011 at 5:35 AM, romuald FREBAULT <kurgan...@gmail.com>wrote: > 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. > -- 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.