Hi,
I was trying to move a master using hiera with clientcert in the hierarchy to use the 3.4 $trusted["certname"]
---
:backends:
- yaml
:yaml:
:datadir: './hieradata'
:hierarchy:
- '%{::clientcert}'
- '%{::custom_location}'
- 'default'
I tried to change %{::clientcert} to several options with no luck
%{::trusted["certname"]}
%{::trusted::certname}
%{hiera("::trusted")["certname"]}
In hiera I can see that %{::trusted} returns the hash a a string, but no idea how to access the individual key. What would be the correct syntax?
Using 3.4.2 master and agent, hiera 1.3.1 and set trusted_node_data = true in puppet/conf
Thanks