Forum: CFEngine Help
Subject: How-to restart machine after certain package have been installed.
Author: juriskrumins
Link to topic: https://cfengine.com/forum/read.php?3,26671,26671#msg-26671

I'm just fighting with kind of simple problem and can't figure out how to do it.
What I basically need is  to restart the machine only after some specific 
package have been installed ( kernel for example )

I've tried to do is using the following syntax:
packages:
 !vz_hardware_node.!vz_container::
   "$(packages.kernel_package)"
     package_policy => "add",
     package_architectures => { "x86_64" },
     package_method => yum, 
     classes => if_rapired("restart_machine");

Seems like it doesn't work and I can figure out why. Can sombody assist me and 
give me a hint how to do it.
Thanks in advance.

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

Reply via email to