[TriLUG] large-scale patch rollouts?
Sinner from the Prairy
sinner at escomposlinux.org
Tue Sep 16 14:57:13 EDT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday 16 September 2003 01:56 pm, David R.Matusiak wrote:
> i know up2date is the tool to apply patches to a single (Red Hat)
> machine, but can this functionality be extended to tens or hundreds of
> machines?
I use apt4rpm (apt-get for rpm) + local "updates" server (that mirrors
official update servers for RedHat, daily rsync) + a cron job on the Linux
boxes that launch a script (see below).
apt4rpm:
http://apt-rpm.tuxfamily.org/
scripts:
- -------- /usr/local/sbin/cronupdate.sh ----------
#~/bin/sh
# for Red Hat, apt-get enabled
# by Sinner from the Prairy , 2002
# sinner at escomposlinux.org / sinner at trilug.org
apt-get update
/usr/local/sbin/auto-update.sh > /root/auto-update.log
cat /root/auto-update.log | mailto -s "Manual-update for `hostname` at `date`"
sinner at trilug.org
- ------------------------------
- -------- /usr/local/sbin/autoupdate.sh ----------
#!/bin/sh
# by Sinner from the Prairy , 2002
# sinner at escomposlinux.org / sinner at trilug.org
# This script is called by crond.
echo =================================================================
echo Updates for `hostname` starting at `date`
echo =================================================================
echo
apt-get -y upgrade
echo
echo =================================================================
echo Updates for `hostname` finished at `date`
echo =================================================================
- ------------------------------
- -------------- crontab -l --------------
# auto update system
55 23 * * * /usr/local/sbin/cronupdate.sh
- ------------------------------
Enjoy!
- --
Visit my website! http://www.ibiblio.org/sinner/
Running on Mandrake Linux 9.0 - Kernel 2.4.19smp Linux User # 89976
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE/Z10MSGQa4/zQ9e8RAg/MAJ95rcf0tkHnpDwcTAALchyIFKM7pwCgigJc
rMqujouFe43Q9RohUyfeySE=
=0sdp
-----END PGP SIGNATURE-----
More information about the TriLUG
mailing list