Forum: CFEngine Help Subject: package lists being updated after every run? Author: simonblake Link to topic: https://cfengine.com/forum/read.php?3,24576,24576#msg-24576
Hi all Using body package_method apt from the stdlib, my (possibly erroneous) understanding is that it should fetch the lists of ubuntu/debian packages no more than once every 4 hours. Looking at the access logs on my squid cache, every time cf-agent runs (8-12 times an hour) I see about requests for Release and Package files, which I assume means that the package caches are being updated every time cf-agent runs. Am I missing something here? I could put an if_elapsed delay into every package installation I do, but I'm not sure that's the correct solution. My stdlib is this version: # Subversion : $Rev: 110 $ # For Cfengine Core: 3.1.0 A typical call in a bundle would be: vars: (debian|ubuntu):: "match_package" slist => { "cron", "gnupg", "less", "netcat-traditional", "rsync", "rsyslog", "ssh", "sudo", "telnet", "wget", }; packages: "$(match_package)" package_policy => "add", package_method => apt; _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine