Skip to content

Commit 163db8e

Browse files
authored
Merge pull request #3429 from nickanderson/CFE-4523/master
Added note about cfengine hard classes for versions
2 parents 3273c30 + e74a957 commit 163db8e

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)