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

-Chris

On Mon, Nov 23, 2009 at 5:35 PM, Julian Simpson <simpsonjul...@gmail.com>wrote:

> 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<puppet-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=.
>
>
>

--

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