Re: [Puppet Users] array in template

2011-06-19 Thread romuald FREBAULT
hi, no, it use facts architecture in facter and not the lsb_release facts architecture = i386 we have debian and redhat nodes, no ubuntu, but i think it's the same result 2011/6/15 Nathan Clemons nat...@livemocha.com Do you have any machines which show the 32-bit machines as i686? I know at

Re: [Puppet Users] array in template

2011-06-15 Thread romuald FREBAULT
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

Re: [Puppet Users] array in template

2011-06-15 Thread Nathan Clemons
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:~$

[Puppet Users] array in template

2011-06-14 Thread romuald FREBAULT
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

Re: [Puppet Users] array in template

2011-06-14 Thread Ken Barber
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