set "global" variable from custom function
I have a custom function that performs some complicated processing on a map that i get from a hiera conf. After the processing is done, let us suppose that the result is stored in an array and returned to the calling recipe(in this case a class i defined). Is there a way to make the return array available to other classes/recipes(other than the one that called the custom function that is). If you think my approach is not puppet-complaint please advise on the best way to perform what I am after.