Is there a "proper" way to set variables via `site...
# puppet
g
Is there a "proper" way to set variables via
site.pp
that are used throughout code and as part of the hiera hierachy? For example, our
site.pp
sets
$role
and
$cluster
based off some data looked up in hiera. They then get used like so in `hiera.yaml`:
Copy code
- "roles/%{::role}.yaml"
- "roles/%{::role}_cluster%{::cluster}.yaml"
If there is a better way to do this than setting a variable in
site.pp
, I am all for learning of that too.