Use a Control Repo to store your Puppetfile.
Hiera data should be in the Control repo OR as a separate source in r10k.yaml. Any hiera.yaml in the Control repo will be ignored on a per environment basis, locating it at /etc/puppetlabs/puppet/hiera.yaml is prefered.
Each puppet module should be contained in its own independent forge module or repository.
It may be me, but I'm not understanding the part in bold, it seems to contradict the official Puppet documentation that clearly says that Hiera will use (among others) any per-environment hiera.yaml that it gets.
That file is 6 years old, could it be that it was referring to some older version of Puppet and it is now wrong?
Do we need to fix the documentation or is there something else that I'm missing?
The current
common-patterns.md
states:It may be me, but I'm not understanding the part in bold, it seems to contradict the official Puppet documentation that clearly says that Hiera will use (among others) any per-environment
hiera.yaml
that it gets.That file is 6 years old, could it be that it was referring to some older version of Puppet and it is now wrong? Do we need to fix the documentation or is there something else that I'm missing?