Sourced From: https://github.com/cfengine/core/pull/4400
Variables and classes are not evaluated in mustache templates from namespaces other than default. For example, I have a policy file for creating autofs map file, which looks as follows:
And the template file autofs.mustache:
So the class hyperbeam is not triggered form the namespace autofs when cf-agent is running. The variable hyperbeam_nodes is also not expanding from autofs namespace, using the syntax vars.autofs:autofs.hyperbeam_nodes.
I have read the Cfengine documentation and did not find anything about accessing variables and classes from different namespases in mustache templates.