Issue #3773 has been updated by Matthias Saou.
I just ran into this exact same issue while trying to create a tinyproxy.conf.erb template with "Timeout <%= timeout %>". It got me wasting some time, so I would also see the benefit of a more useful error message. Note that I got a similar problem when trying "LogLevel <%= loglevel %>", but since that's conflicting at some other level, the message at least hints at that variable : <pre> Puppet (err): Could not run Puppet configuration client: Parameter loglevel failed: Invalid value "Warning". Valid values are debug, info, notice, warning, err, alert, emerg, crit, verbose. at /etc/puppet/modules/tinyproxy/manifests/init.pp:40 </pre> ---------------------------------------- Bug #3773: Can't use "timeout" as a variable name in an erb template http://projects.puppetlabs.com/issues/3773 Author: Robin Bowes Status: Needs more information Priority: Normal Assigned to: Category: Target version: Affected version: 0.25.4 Keywords: template erb Branch: I got this error when puppet tried to parse a template: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template pulse/lvs.cf.virtual.erb: wrong number of arguments (0 for 1) at /etc/puppet/modules/pulse/manifests/config.pp:121 on node a003.private.a.statcounter.com I debugged the content of the template until I found that a template containing this single line caused the same error: timeout = <%= timeout %> I worked around this by changing the variable name to timeout_value: timeout = <%= timeout_value %> -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
