Did a little more reading. Even when the external node script prints
an empty YAML document, '---', I still get that error.

Doug.

On Wed, Dec 28, 2011 at 1:27 PM, Douglas Garstang
<[email protected]> wrote:
> What should an external node script output when it can't find the
> node? The docs here:
>
> http://docs.puppetlabs.com/guides/external_nodes.html
>
> are incomplete and don't specify. it's my understanding, and previous
> experience (somehow) that when the enc script can't find the node,
> that puppet should look to the nodes.pp file. However, my client
> (which is in nodes.pp, but not found by the enc script) is displaying:
>
> Dec 28 21:22:08 dev-ge-admin-01 puppet-agent[32263]: Could not
> retrieve catalog from remote server: Error 400 on SERVER: Failed when
> searching for node dev-ge-admin-01.c4-e.com: Could not load external
> node results for dev-ge-admin-01.c4-e.com: undefined method `inject'
> for nil:NilClass
>
> I've tried having the enc script output nothing, and '---' with an
> exit code of 0. Same result on client.
>
> Doug



-- 
Regards,

Douglas Garstang
http://www.linkedin.com/in/garstang
Email: [email protected]
Cell: +1-805-340-5627

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