John Villalovos wrote:
I started trying to use the packages command. So I did the following:
Does NOT work. Using the Logical NOT operator and define=:
----------------------------- packages:
redhat::
vim-enhanced define=hasVimEnhanced
shellcommands:
# Install vim-enhanced if it is not already installed.
!hasVimEnhanced:: "/usr/sbin/up2date vim-enhanced"
But this did work using elsedefine= and not using the logical NOT
operator: -----------------------------------
packages:
redhat::
vim-enhanced elsedefine=needVimEnhanced
shellcommands:
# Install vim-enhanced if it is not already installed.
needVimEnhanced:: "/usr/sbin/up2date vim-enhanced"
Well after playing with it some more it seems likes packages: is not
working for me :(
I changed the one that was working to be the package "vim-enhanced2"
(which does NOT exist). It still ran and did not define the
needVimEnhanced class.
These two functions NEVER get called. I would think they should get
called but they don't.
CheckPackages()
RPMPackageCheck()