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
---
:backends:
- yaml
:hierarchy:
- "%{::fqdn}"
- common
:yaml:
:datadir: /etc/puppet/hieradata/%{environment}/