I'm rather new to cfengine but one thing I can't figure out from the
documentation is how to get cfengine to install a package if it is not
installed or to update it if there is a new version. I have something like
this in my config file
packages:
linux::
google-chrome-stable action=install
So that installs google-chrome-stable if its not already installed. But
google recently put out version 13 and my workstations did not automatically
upgrade from 12 to 13. So I change my config to say "action=upgrade" and
then they all downloaded and installed version 13. However, if any
workstation was completely missing google-chrome-stable, it didn't install
it. So then I changed it back to action=install.
I am working with debian workstations. With debian apt package manager,
"apt-get install" will install a package if it doesn't exist or upgrade it
if there is a new version. So I want cfengine to do the same thing. Here are
the package management directives in my cfagent.conf
DefaultPkgMgr = ( dpkg )
DPKGInstallCommand = ( '/usr/bin/apt-get -y install %s' )
DPKGRemoveCommand = ( '/usr/bin/apt-get -y remove %s' )
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine