[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Cfengine] how to install a package uninstalled with cfengine???
From: |
Guolin Cheng |
Subject: |
RE: [Cfengine] how to install a package uninstalled with cfengine??? |
Date: |
Tue, 20 Jul 2004 16:41:37 -0700 |
Using cfengine to automatically check and install|upgrade a lot of
packages seems a little cumbersome...
We do the same thing using "yum -y -t -d0 -c <yumConfFileOnHTTPServers>
install *" command in a cron script. This way it can automatically
install packages for two situations:
1) packages are installed before, but a new patched version comes out.
2) a package is not currently installed, while we would like to install
it.
We placed the script under control of cron, and run it 4 times a day to
update about 100+ packages. It seems perfect for our 600+ Linux hosts
environment.
--Guolin Cheng
-----Original Message-----
From: help-cfengine-bounces+guolin=alexa.com@gnu.org
[mailto:help-cfengine-bounces+guolin=alexa.com@gnu.org] On Behalf Of Bas
van der Vlies
Sent: Monday, July 19, 2004 11:06 PM
To: freak
Cc: help-cfengine@gnu.org
Subject: Re: [Cfengine] how to install a package uninstalled with
cfengine???
freak wrote:
> 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!!!
>
I use a lot of this kind of cfengine scripts:
--- sudo.cf -----
# Install SUDO and sudo config file (sudoers)
groups:
SUDO_INSTALLED = ( FileExists(/var/lib/dpkg/info/sudo.list) )
control:
actionsequence = ( copy shellcommands )
copy:
!SUDO_INSTALLED::
$(SV_OVERLAY_DIR)/global/etc/sudoers
dest=/etc/sudoers
type=checksum
backup=false
server=$(SERVER)
mode=0440
shellcommands:
!SUDO_INSTALLED::
"$(SCRIPT_DIR)/install_pkg sudo"
_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- RE: [Cfengine] how to install a package uninstalled with cfengine???,
Guolin Cheng <=