Hello
I have been attempting to set all my clients environments from a single yaml file rather than having a single file for each server.
I want to modify the puppet.conf.erb file to use a hiera lookup to get the enviornment from the env.yaml file for that $::clientcert .
Is this possible and can someone point me in the right direction on how to do this? I have tried 100 different options from google searches and nothing works.
For example I have env.yaml
---
- environment: testing
- environment: unstable
- environment: stable
My hiera,yaml looks like
---
:backends:
- yaml
:hierarchy:
- env
- environment/%{environment}
- operatingsystem/%{operatingsystem}
- node/%{fqdn}
- common
:merge_behavior: deeper
:logger: puppet
:yaml:
:datadir: /etc/puppet/hieradata