puppetlookup

Puppet lookup for server facts


What extra configuration is required to ensure puppet lookup considers server facts?

Add the following either into a class included for a node, or into your site.pp

notice($server_facts['environment'])

Catalog compilation for puppet agent -t will work perfectly.

However a puppet lookup query of

puppet lookup --compile --node nodename module::keyname

For any particular key, will fail, as the catalog will fail to compile (due to the absence of the server facts)

What additional configuration is required so that the catalog compilation triggered by puppet lookup includes server facts?

Tried a lookup for a node which uses server facts in its catalog Expected the lookup to succeed


Solution

  • This was a defect in the software, which Puppet have agreed to fix in a future release.