Skip to content

Commit e74a957

Browse files
committed
Added note about cfengine hard classes for versions
Ticket: CFE-4523 Changelog: None
1 parent dd22b8c commit e74a957

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

reference/language-concepts/classes.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ of a week.
119119

120120
* CFEngine-specific classes
121121
* `any`: this class is always set
122+
* `cfengine`: This class is always defined.
123+
* `cfengine_<X>`: This class is always defined where `<X>` represents the major version of CFEngine running. For example, `cfengine_3` is defined on all versions of CFEngine 3.x.
124+
* `cfengine_<X>_<Y>`: This class is always defined where `<X>` represents the major version of CFEngine running and `<Y>` represents the minor version. For example, `cfengine_3_24` is defined on all versions of CFEngine 3.24.x.
125+
* `cfengine_<X>_<Y>_<Z>`: This class is always defined where `<X>` represents the major version of CFEngine running, `<Y>` represents the minor version, and `<Z>` represents the patch version. For example, `cfengine_3_24_0` is defined only on CFEngine 3.24.0.
122126
* `am_policy_hub`, `policy_server`: set when the file
123127
`$(workdir)/state/am_policy_hub` exists. When a host is [bootstrapped][cf-agent], if
124128
the agent detects that it is bootstrapping to itself the file is created.

0 commit comments

Comments
 (0)