From adef572dcac70f65aa04c42a8f89e29f88b47eb8 Mon Sep 17 00:00:00 2001 From: Victor Moene Date: Wed, 5 Aug 2026 11:19:22 +0200 Subject: [PATCH] Added sys.cfengine_role variable docs entry Ticket: ENT-10665 Signed-off-by: Victor Moene --- content/reference/special-variables/sys.markdown | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/content/reference/special-variables/sys.markdown b/content/reference/special-variables/sys.markdown index 4602f205c..adba70377 100644 --- a/content/reference/special-variables/sys.markdown +++ b/content/reference/special-variables/sys.markdown @@ -45,6 +45,17 @@ The date of the system in canonical form, i.e. in the form of a class, from when sys.cdate = Sun_Dec__7_10_39_53_2008_ ``` +### sys.cfengine_role + +The variable gives the role of the host running the policy, as a string + +```cf3 {skip TODO} +reports: + "Role: $(sys.cfengine_role)"; +``` + +**History:** Was introduced in 3.29.0. + ### sys.cf_promises A variable containing the path to the CFEngine syntax analyzer