Forum: Cfengine Help
Subject: Cfengine update using yum problems
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,17563,17563#msg-17563
Hello folks,
Today I've been testing the update process for the cfengine itself on CentOS.
Here is what I've got.
First, I've tried just to add package promise:
packages:
centos::
"cfengine-community"
package_method => yum,
package_policy => "update",
comment => "Update cfengine";
As the result, cfengine have got updated from 3.0.4p2 to 3.0.5, but cf-execd
and cf-serverd have been stopped during update and never started again, despite
process promise:
processes:
!restart_me::
"$(component)" restart_class => canonify("start_$(component)");
Well, so that I've added the following attribute to the package promise:
classes => if_repaired("restart_me"),
This time cf-execd and cf-serverd have got restarted, but not only during
update. Restart happens every cycle of package promise verification which is
pretty inconvenient.
Is there a solution to this?
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine