Forum: CFEngine Help
Subject: Re: if-then-else
Author: mark
Link to topic: https://cfengine.com/forum/read.php?3,25175,25178#msg-25178

Hi,

In CFEngine you don't have to check this kind f thing in advance. The checking 
is built into the semantics of the language. All you do is to assert that you 
want the package updated to the latest, and CFEngine will figure out the rest. 
You can then check the status of the promise -- was it kept (meaning ok) or 
repaired meaning it is now ok after having been updated...etc.

So all of the communication with yum is build in.

packages:

  "mypackage"

                comment => "Must have the latest version of this package",
    package_policy => "update",
  package_method => "yum";      # or addupdate

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to