Table of Contents
cf_version_at
Table of Contents
Prototype: cf_version_at(string)
Return type: boolean
Description: Returns true
if local CFEngine version is the same as specified string
.
Arguments:
string
:string
, in the range:.*
Example:
bundle agent __main__
{
reports:
"This will be skipped if version is not the same"
if => cf_version_at("3");
"This will be skipped if version is the same"
unless => cf_version_at("3");
}
Output:
R: This will be skipped if version is not the same
See also: cf_version_maximum()
, cf_version_minimum()
, cf_version_after()
, cf_version_before()
, cf_version_between()
.
History:
- Introduced in 3.16.0