Forum: CFEngine Help Subject: Re: CFEngine Help: How-to restart machine after certain package have been installed. Author: nickanderson Link to topic: https://cfengine.com/forum/read.php?3,26673,26694#msg-26694
I tested this, and it worked for me. bundle agent main{ commands: !am_policy_hub:: "/sbin/shutdown -r now", ifvarclass => "reboot"; packages: "vim-enhanced" package_policy => "add", package_method => yum, classes => if_repaired("reboot"); } _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine