Specifying --node
on puppet lookup
always fails with No facts available for target node
#9544
Labels
bug
Something isn't working
Describe the Bug
When trying to lookup Hiera data using
puppet lookup foo --node node.example.com
, I always getNo facts available for target node: node.example.com
. This even happens if I enter the hostname of the node I am on. If I leave off the--node
option I get results for the current node like expected.Expected Behavior
I should be able to lookup node-specific Hiera data by specifying the node with
--node
Steps to Reproduce
hiera.yaml
like sohieradata/common.yaml
like so:hieradata/nodes/node.example.com.yaml
like so:puppet lookup foo --node node.example.com
Error: Could not run: No facts available for target node: node.example.com
as resultEnvironment
The text was updated successfully, but these errors were encountered: