Skip to content

Commit 47ccda7

Browse files
committed
Disabled policy versions
Changelog: Disabled policy version in masterfiles because it is now managed and inventoried by default by the core agent inside sys.policy_version. Ticket: ENT-4043 Signed-off-by: Victor Moene <victor.moene@northern.tech>
1 parent 24efff1 commit 47ccda7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

inventory/any.cf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ bundle common inventory_any
1919
"policy_version" -> { "ENT-9806" }
2020
string => "$(default:control_common.version)",
2121
meta => { "inventory", "attribute_name=CFEngine policy version" };
22+
if => isvariable("sys.policy_version"),
23+
comment => concat( "Don't inventory the policy version from policy when it's available",
24+
" as a sys var to avoid duplicate values being inventoried.");
2225

2326
reports:
2427
"DEBUG|DEBUG_$(this.bundle)"::

0 commit comments

Comments
 (0)