On Mon, Nov 1, 2010 at 7:25 PM, <no-re...@cfengine.com> wrote: > Forum: Cfengine Help > Subject: Re: package mgmt with apt > Author: joke > Link to topic: https://cfengine.com/forum/read.php?3,18977,18983#msg-18983 > > I haven't tried it yet but I think you can use the ifelapsed directive to > do the dpkg checking a little less often. Only every 5 cf-agent run or so. >
Actually I went one better - I make the package promise conditional on the restart class for the associated process. If a process is actually running, it seems a bit neurotic to keep checking if the package is installed. There may be some cases where it is justified to keep checking, probably when you are trying to keep a package in sync with the latest version. > > If you don't set the DEBIAN_FRONTEND environmentale variable new packages > can be installed without any problems as long as no package actually uses > debconf. If a package which uses debconf will get install and opens an > debconf prompt cfengine will get stuck. How could cfengine ask the debconf > questions. > > Same goes for "Dpkg::Options::=--force-confold" as long as there are no > changes to configuration files dpkg will install the new configuration file > without problem. If there are changes dpkg will always ask what to do and > cfengine will get stuck. Unless you told dpkg what to do by setting > --force-confold or --force-confnew. > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/help-cfengine >
_______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine