I'd like to set a value used repeatedly by several classes and resources from Hiera. In other words, set a global parameter through Hiera. So, in the appropriate yaml file, I have:
Then, in the manifests, I tried:
if $myvar == 'foo'
as well as
if $::myvar == 'foo'
to no avail. How is this done? Looking at the Puppet docs didn't help much, all I saw was class based examples.