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,26712#msg-26712
I really don't have a good understanding of how the package_method bodies work. Fiddeling around with the yum package_method body I found that setting package_name_convention => "$(name)"; changed the output in verbose to something I was expecting to see .... the package refers to itself as "vim-enhanced" to the package manager, instead of "vim-enhanced.*", but it still goes ahead and trys to install vim-enhanced anyway, and returns 0 because its already installed. cf3> -> Package version was not specified cf3> -> Looking for (vim-enhanced,*,*) cf3> No installed packages matched (vim-enhanced,*,*) cf3> -> Looking for (vim-enhanced,*,*) cf3> No installed packages matched (vim-enhanced,*,*) cf3> Checking if package (vim-enhanced,*,*) is at the desired state (installed=0,matched=0) cf3> -> Package promises to refer to itself as "vim-enhanced" to the manager cf3> -> Package version seems to match criteria cf3> -> Schedule package for addition cf3> -> Package (vim-enhanced,any,any) found cf3> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> cf3> Offering these package-promise suggestions to the managers cf3> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> cf3> -> Deletion schedule... cf3> -> Addition schedule... cf3> Execute scheduled package addition cf3> Command prefix: /usr/bin/yum -y install cf3> Executing /usr/bin/yum -y install vim-enhanced ... _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine