help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to install a package uninstalled with cfengine???


From: freak
Subject: Re: how to install a package uninstalled with cfengine???
Date: 26 Jul 2004 05:59:49 -0700

John Sechrest <sechrest@peak.org> wrote in message 
news:<mailman.476.1090249650.1960.help-cfengine@gnu.org>...
> Yes, you can call apt-get from cfengine and use it to install
> new packages.
> 
> 
> 
> lepilliez_benoit@yahoo.fr (freak) writes:
> 
>  % Hello!!
>  % 
>  % I would to test if a package is installed on different hosts and
>  % install this package when is not installed.
>  % 
>  % Anybody knows if it's possible to do this type of command with
>  % cfengine???
>  % 
>  % All my network run on Debian Sarge!!!
>  % 
>  % Thanks
>  % 


Eventually I found an answer to this question of auto installation and
test of the install of a package!!

Look!!!


 classes:

     smtp = ( ReturnsZero(/bin/sh -c "/usr/bin/dpkg -l ssmtp |grep
^ii")  )


  shellcommands:

    !ssmtp::

     "/usr/bin/apt-get --assume-yes --trivial-only install --purge
ssmtp"

 


>  % Freak
>  % _______________________________________________
>  % Help-cfengine mailing list
>  % Help-cfengine@gnu.org
>  % http://lists.gnu.org/mailman/listinfo/help-cfengine
> 
> -----
> John Sechrest          .         Helping people use
>                         .           computers and the Internet
>                           .            more effectively
>                              .                      
>                                  .       Internet: sechrest@peak.org
>                                       .   
>                                               . http://www.peak.org/~sechrest


reply via email to

[Prev in Thread] Current Thread [Next in Thread]