Hello,
There are a few issues with your example that need to be fixed, to make it work.
As a start, you need to prefix certain keywords in /etc/hiera.yaml with a colon (:). I have tested using this setup:
---
:backends:
- yaml
:hierarchy:
- node/%{::fqdn}
- "%{::environment}"
- global
:yaml:
:datadir: /etc/puppet/hieradata
Apart from that, you are querying hiera using the node=puppetmaster fact, but in /etc/hiera.yaml you are using the fact fqdn as one of the hierarchy parts. So, switching to using 'hiera webserver ::fqdn=puppetmaster' should work.
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/921fe6ed-1386-4684-bf0a-3e2f626df8d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/921fe6ed-1386-4684-bf0a-3e2f626df8d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/VEFQf3sWRys/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/zarafa.588f39a7.20ad.287536a667ca920a%40anjie.dontpanic.nl.