2009/11/23 Christopher Johnston <chjoh...@gmail.com>:
> Its definitely there.. I even put a <%= processorcount %> to make sure the
> variable is set.
> <% processorcount.to_i-1 %>
> <% for cpu in (0..processorcount) %>
> Facter version is 1.52
> # facter  | grep proc
> processor0 => Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
> processor1 => Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
> processor2 => Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
> processor3 => Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
> processorcount => 4

And the <%= processorcount %> snippet resolved to 4 in your template?

I'm stumped then.  I thought you could do iteration with any ERB
template, not just in Rails.

J.

--

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=.


Reply via email to