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? On Dec 16, 3:45 pm, boddiesdrinker <[email protected]> wrote: > Spoke too soon. > > If i run puppetd like this: > > sudo puppetd --test --noop -v > > i get the error: > > err: Failed to parse template postfix/relayhost.erb: undefined method > `function_file' for #<Puppet::Parser::Scope:0x7fc135e5b0e8> at /etc/ > puppet/testing/modules/postfix/manifests/init.pp:114 on node > ip-10-250-14-118.ec2.internal > > Help. > > Thanks again > > Martin > > On Dec 16, 3:25 pm, boddiesdrinker <[email protected]> wrote: > > > > > > > > > Sorted; had old rb files in /usr/lib/ruby/1.8/puppet.New files were > > in /usr/local/lib/site_ruby/1.8/puppet. > > renamed first to something else and bingo it works. > > > On Dec 16, 1:43 pm, boddiesdrinker <[email protected]> wrote: > > > > i've inherited a system managed by Puppet and have upgraded puppet > > > from 0.24.4 to 2.6.4. I upgraded facter as well; in both instances i > > > used the latest versions. > > > > There are a few issue, the most major of which atm seems to be this: > > > > undefined method `function_file' for #<Puppet::Parser::Scope: > > > 0x7f7b32ee3540> > > > > NOne of the files have been altered. > > > > Anyone have any ideas? > > > > Thanks > > > Martin -- You received this message because you are subscribed to the Google Groups "Puppet Users" 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-users?hl=en.
