I'm trying to setup a puppet master with hiera.

When I try "puppet agent --test" on the mongo node I get this error.

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find default node or by name with 'mongo.example.com, mongo.example, mongo' on node mongo.example.com Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run

I have:

/etc/puppet/hieradata/production/common.yaml /etc/puppet/hieradata/production/mongo.example.com.yaml

this is my hiera.yaml


  - yaml

  - "%{::fqdn}"
  - common

   :datadir: /etc/puppet/hieradata/%{environment}/
  • // , Please, show the research you have gone through so far, already. – Nathan Basanese Feb 9 '17 at 22:51

You have to define a node in $PUPPETDIR/manifests/site.pp (or node.pp, as this is usually imported from site.pp and is meant to keep node defs).

| improve this answer | |
  • 1
    This. Although you should no longer import manifest files. – Felix Frank Apr 21 '15 at 11:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.