Skip to content

Commit 1a3704b

Browse files
committed
Removed delay in refreshing software installed inventory
This change sets the delay for updating the inventory of currently installed packages to 0, effectively disabling any delay. This inventory affects packagesmatching() as well as inventory collected by an Enterprise hub. Without this change, changes to software made outside CFEngine may not be realized for up to 60 minutes. Ticket: ENT-6154 Changelog: Title
1 parent 6caf8c2 commit 1a3704b

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

MPF.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,8 +1210,8 @@ For example:
12101210
### Configure periodic package inventory refresh interval
12111211

12121212
CFEngine refreshes software inventory when it makes changes via packages
1213-
promises. Additionally, by default, CFEngine periodically refreshes it's
1214-
internal cache of packages installed (every 60 minutes) and package updates that
1213+
promises. Additionally, by default, CFEngine refreshes it's
1214+
internal cache of packages installed (during each agent run) and package updates that
12151215
are available (once a day) according to the default package manager in order to
12161216
pick up changes made outside packages promises.
12171217

@@ -1227,7 +1227,10 @@ pick up changes made outside packages promises.
12271227
WARNING: Be ware of setting `package_module_query_update_ifelapsed` too low,
12281228
especially with public repositories or you may be banned for abuse.
12291229

1230-
**History**: Added in 3.15.0, 3.12.3
1230+
**History**:
1231+
1232+
* Added in 3.15.0, 3.12.3
1233+
* 3.17.0 decreased `package_module_query_installed_ifelapsed` from `60` to `0`
12311234

12321235
### Enable logging of Enterprise License utilization
12331236

controls/def.cf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ bundle common def
185185

186186
# Package inventory refresh
187187
"package_module_query_installed_ifelapsed" -> { "CFE-2771" }
188-
string => "60", # 1 hour
188+
string => "0", # Always refresh local package inventory
189189
if => not( isvariable( $(this.promiser) ));
190190

191191
"package_module_query_updates_ifelapsed" -> { "CFE-2771" }

0 commit comments

Comments
 (0)