What variable can be used in Techniques and Directives and with what syntax?

In Rudder, you have several types of variables that can be used in Technique and Directive and expanded when the policy are generated or by the agent on the target node depending of your need. Of course, the context is not the same in each case, and you won't have access to exactly the same variable.

The main types of variables are:

A must-have cheatsheet with the syntax for each case is available here: https://github.com/Normation/rudder-tools/blob/master/documents/cheatsheet-advanced/rudder-cheatsheet-advanced.pdf

Is this article helpful for you?