On Thu, 14 Oct 2010 18:37:01 -0400, Peter Berghold wrote: > > <% nagios_conf_dirs.each |dir| -%> > cfg_dir=<%= dir %> > <% end -%> > > Anybody have any idea why that would cause a syntax error in a template? > > According to debug mode on puppetmasterd it is.... > > err: compile error > (erb):18: syntax error > _erbout.concat "cfg_dir"; _erbout.concat(( dir ).to_s); _erbout.concat "\n" > ^ > (erb):19: syntax error > end > ^ >
You're missing the "do" after each: <% nagios_conf_dirs.each do |dir| -%> cfg_dir=<%= dir %> <% end -%> -- Jacob Helwig
signature.asc
Description: Digital signature