Revision e42f4e1c
Added by Alexis Mousset almost 7 years ago
4_advanced_usage/40_node_properties.txt | ||
---|---|---|
|
||
WARNING: Before Rudder 3.1.14 and 3.2.7, node properties could not be used in JavaScript expressions (see following section), since they are evaluated during policy generation and node properties were only made available to agents at runtime. Since Rudder 3.1.14, 3.2.7 and 4.0.0 and later, you can enable a feature switch in "Administration/Settings" to enable node properties expansion in directive parameters. More details are available at <<_node_properties_expansion_in_directives>>.
|
||
|
||
In a mustache template, use:
|
||
|
||
----
|
||
|
||
{{{vars.node.properties.datacenter}}}
|
||
|
||
----
|
||
|
||
==== Under the hood
|
||
|
||
On the server, one or more properties files are written for each node in the
|
Also available in: Unified diff
Fixes #10614: Extend node property documentation for templates