Skip to content

Commit cb94248

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 cb94248

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

controls/def.cf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,8 @@ bundle common inventory_control
871871
"disable_inventory_proc" expression => "disable_inventory|freebsd";
872872
"disable_inventory_proc" not => isdir($(proc));
873873

874+
"disable_mpf_policy_version" expression => isvariable("$(sys.policy_version)");
875+
874876
reports:
875877
verbose_mode.disable_inventory::
876878
"$(this.bundle): All inventory modules disabled";

inventory/any.cf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ bundle common inventory_any
1616
string => "$(data[releaseId])",
1717
meta => { "inventory", "attribute_name=Policy Release Id" };
1818

19-
"policy_version" -> { "ENT-9806" }
20-
string => "$(default:control_common.version)",
21-
meta => { "inventory", "attribute_name=CFEngine policy version" };
19+
disable_mpf_policy_version::
20+
"policy_version" -> { "ENT-9806" }
21+
string => "$(default:control_common.version)",
22+
meta => { "inventory", "attribute_name=CFEngine policy version" };
2223

2324
reports:
2425
"DEBUG|DEBUG_$(this.bundle)"::

0 commit comments

Comments
 (0)