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

Try initializing it first. I know, annoying. Check this out:

http://stackoverflow.com/questions/1338960/ruby-templates-how-to-pass-variables-into-inlined-erb

-scott

--

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