On 23 Nov 2009, at 3:41 PM, Christopher Johnston wrote:
> Yes it prints 4 directly into the file, but I cant put  
> processorcount into the loop.  Works fine in ruby but erb fails.   
> Any ideas here on how to do this?  I need to be able to determine  
> the number of processors on the systems so I can generate a  
> configuration file (loop through each processor number).

>> <% for cpu in (0..processorcount) %>

Try:

        <% for cpu in (0 .. processorcount.to_i) %>

-- 
Ian Ward Comfort <icomf...@rescomp.stanford.edu>
Systems Team Lead, Student Computing, Stanford University

--

You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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.


Reply via email to