From dc2ab72d8964a2299b0c863a5abc72699ac5dc9d Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Mon, 14 Feb 2011 20:06:20 +0000 Subject: [PATCH] start of upgrade to squeeze page Signed-off-by: Stephen Gran --- input/howto/upgrade-to-squeeze.mdwn | 99 +++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 input/howto/upgrade-to-squeeze.mdwn diff --git a/input/howto/upgrade-to-squeeze.mdwn b/input/howto/upgrade-to-squeeze.mdwn new file mode 100644 index 0000000..e46cc76 --- /dev/null +++ b/input/howto/upgrade-to-squeeze.mdwn @@ -0,0 +1,99 @@ + +# Upgrade from lenny to squeeze + +turn off samhain + + /etc/init.d/samhain stop + + +maybe turn off exim + + /etc/init.d/exim4 stop + mv /etc/rc2.d/S20exim4 /etc/rc2.d/K20exim4 # so it stays down + + +install deborphan, clean up + + apt-get install deborphan dialog + orphaner + orphaner -n + orphaner -a + orphaner -a -n + + +purge removed packages + + dpkg --get-selections | awk '$2!="install" {print $1}' + echo "really purge these [y/N]?"; read ans; [ "$ans" = "y" ] && dpkg --purge `dpkg --get-selections | awk '$2!="install" {print $1}'` + +update dsa-puppet.git (add to squeeze list in local.yaml) + +do a puppet run: + puppetd -t + + +change sources list entries to squeeze: + + mirror=`cat /etc/apt/sources.list.d/debian.list | awk '/debian/ {print $2; exit}'` + echo "Mirror is $mirror"; echo "Fix stuff if this seems wrong"; echo "XXXXXXXXXXXXXXXXXXXXXXX" + echo "## VERIFY THE MIRROR IS CORRECT ##"; read + + +write new sources.list.d/ entries: + + cd /etc/apt/sources.list.d && sed -i "s#lenny#squeeze#g" > debian.list + +update apt list + + apt-get update + + +upgrade + + apt-get install locales-all + + +rest follows + + apt-get dist-upgrade + + +reject changes to /etc/pam.d/sudo (puppet will install a new file later anyway) + +reject changes to /etc/munin/plugin-conf.d/munin-node (puppet will install a new file later anyway) + + * keep local (i.e. reject (N)): + * all changes relating to exim (in /etc/exim4 and in logrotate) + * /etc/ldap/ldap.conf + * /etc/nagios/nrpe.cfg + * /etc/samhain/samhainrc + * /etc/munin/munin-node.conf + * /etc/logrotate.d/apache2 + * /etc/apache2/apache2.conf + * /etc/apache2/ports.conf + +update nagios.git (add host to squeeze hostgroup) + +check for obsolete packages + + /usr/lib/nagios/plugins/dsa-check-packages + +clean up old libs + + orphaner + orphaner -n + orphaner -a + orphaner -a -n + + +purge removed packages + + dpkg --get-selections | awk '$2!="install" {print $1}' + echo "really purge these [y/N]?"; read ans; [ "$ans" = "y" ] && dpkg --purge `dpkg --get-selections | awk '$2!="install" {print $1}'` + +possibly reboot + +re-enable exim + + mv /etc/rc2.d/K20exim4 /etc/rc2.d/S20exim4 + env -i /etc/init.d/exim4 start -- 2.20.1