Donavan,

took a while to get round to testing, but that worked.

i now have to work out how to move the facts that are in place...

Thanks for the help,

Martin

On Fri, Dec 17, 2010 at 7:46 AM, Martin Samm <[email protected]> wrote:

> Donovan,
>
> yes it does. for quite a long time.
>
> it echos that its bound variables on the erb then sites there.
>
> the client times out and then eventually puppetmaster comes back with the
> error.
>
> Thanks,
>
> Martin
>
>
> On Fri, Dec 17, 2010 at 6:29 AM, donavan <[email protected]> wrote:
>
>> On Dec 16, 10:48 am, boddiesdrinker <[email protected]> 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 [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<puppet-users%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/puppet-users?hl=en.
>>
>>
>
>
> --
> "If we moved in next door, your lawn would die"
> Lemmy, Motorhead
>



-- 
"If we moved in next door, your lawn would die"
Lemmy, Motorhead

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

Reply via email to