Carlos Sanchez
2014-Feb-01 16:22 UTC
[Puppet Users] Using new trusted data certname in hiera
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
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/1a5d6935-9a37-4f0b-8a73-060b96fa8494%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.