Forum: Cfengine Help
Subject: Cfengine package update on CentOS5
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,17539,17539#msg-17539

Hello folks,

Trying to perform the package update for Cfengine by cfengine itself, I wrote 
the following specification:


bundle agent cfengine
{
 vars:
        "id"            string  => "cfengine";

    linux::
        "name"          string  => "$(id)3";
        "options"       string  => "/etc/default/$(name)";
        "start_cmd"     string  => "/etc/init.d/$(name)";
        "pkg"           string  => "$(id)-community";

packages:
    centos::
        "$(pkg)"
                package_method  => yum,
                package_policy  => "update",
                comment         => "Update cfengine";

...
}


The rest of the bundle seems irrelevant to me, so I've omitted it. Well, here's 
the output from the cf-agent verbose run:


cf3  -> Looking for (cfengine-community,*,*)
cf3  -> Matched name cfengine-community
cf3  -> Matched version *
cf3  -> 1 package(s) matching the name "cfengine-community" already installed
cf3  -> 1 package(s) match the promise body's criteria fully
cf3  -> Package promises to refer to itself as "cfengine3" to the manager
cf3  -> Package version seems to match criteria
cf3  -> Schedule package for update
cf3  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
cf3    Offering these package-promise suggestions to the managers
cf3  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
cf3  -> Deletion schedule...
cf3  -> Addition schedule...
cf3  -> Update schedule...
cf3 Execute scheduled package update
cf3 Command prefix: /usr/bin/yum -y update
cf3 Executing /usr/bin/yum -y update cfengine3 ...
cf3 Q:yum -y update cfengi ...:Setting up Update Process
cf3 Q:yum -y update cfengi ...:Could not find update match for cfengine3
cf3 Q:yum -y update cfengi ...:No Packages marked for Update
cf3 Q:yum -y update cfengi ...:
cf3 Bulk package schedule execution ok for cfengine3 (outcome cannot be 
promised by cf-agent)


Does anybody know WHY 'Package promises to refer to itself as "cfengine3" to 
the manager'?

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

Reply via email to