:hierarchy:
- "%{clientcert}"
- "%{environment}"
- global
--
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/6510ddf4-2a0b-4a1e-abb8-8d0244ba48f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You can hace %{role} in your hierarchy setting in your site.pp:
$role=hiera('role')
Regards
--
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/b4b53515-8858-4419-be07-5d7aee9720dd%40googlegroups.com.
Hiera is called each time you query it, or because of the auto lookup, so if you set up a role variable in site.pp you can use it in next queries.
I use this method ;)
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/08a5666e-e035-46b3-8e9a-7fec33ceda18%40googlegroups.com.