On Dec 16, 10:48 am, boddiesdrinker <martin.s...@gmail.com> wrote:
> The template file has this code:
>
> relay = scope.function_file(["/etc/puppet/secrets/smtp/" + name + "/
> relay"]).chomp
>
> Could it be the form of the file function which has changed?

I've just opened an issue that you may be hitting in 2.6[1]. Does the
puppet master appear to hang before you get the 'undefined method'
error? If you have debug you might see output like this:

debug: Scope(Node[foo.domain.tld]): Retrieving template test.erb
debug: template[/tmp/puppet/templates/test.erb]: Bound template
variables for /tmp/puppet/templates/test.erb in 0.00 seconds
err: Failed to parse template test.erb: undefined method
`function_fqdn_rand' for #<Puppet::Parser::Scope:0x2b37140ced30> at /
tmp/puppet/manifests/site.pp:43 on node foo.domain.tld

If so I believe it may be the same problem .Try using the first
workaround in the ticket, it's a trivial fix for the issue. You'll
need to make sure that the function is called in the manifest before
you parse the template though. Putting something like '$workaround =
file("/etc/puppet/secrets/smtp/relay")' in site.pp should do it.


[1] http://projects.puppetlabs.com/issues/5587

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