About | FAQ | Help
Ask Your Question

Revision history [back]

In the class that calls the template, do this:

require other_module::otherklass
$my_modules_vars = $other_module::otherklass::module_vars

and in the template, reference @my_module_vars.

You would need to use scope.function_hiera_hash() to cal it directly, but I would not recommend that as it will make it harder to maintain and to read.