1 # Upgrade from squeeze to wheezy
3 Make sure to coordinate with whoever uses the host, be it the buildd
4 operator, the QA team, the ftp team or just announce it if it's a
9 buildds want moving to the new puppetized setup!
13 * answer question to libc6 "Restart services automaticaly" with "yes"
14 * say no to other other questions.
18 sed -i "s#wheezy#jessie#g" /etc/apt/sources.list.d/debian.list /etc/apt/sources.list.d/security.list &&
20 if [ -e /etc/apt/sources.list.d/buildd.debian.org.list ]; then
21 sed -i "s#squeeze#wheezy#g" /etc/apt/sources.list.d/buildd.debian.org.list
24 apt-get install dpkg apt samhain &&
25 service samhain stop &&
26 apt-get dist-upgrade &&
27 rm -f /var/state/samhain/samhain_file /var/lib/samhain/samhain_file &&
28 samhain --foreground -t init -p none -s none -l none -m none &&
29 (puppet agent -t || true) &&
30 apt-get dist-upgrade &&
31 apt-get --purge autoremove &&
32 while [ "$(deborphan -n | wc -l)" -gt 0 ] ; do apt-get purge $(deborphan -n); done &&
37 purge removed packages
39 dpkg --get-selections | awk '$2=="deinstall" {print $1}' &&
40 echo "really purge these [y/N]?" && read ans && [ "$ans" = "y" ] && dpkg --purge `dpkg --get-selections | awk '$2=="deinstall" {print $1}'` &&
41 echo "These are not at install:" && dpkg --get-selections | awk '$2!="install" {print $1}'
45 /usr/lib/nagios/plugins/dsa-check-packages | tr -d ,
49 apt-get --purge autoremove &&
50 while [ "$(deborphan -n | wc -l)" -gt 0 ] ; do apt-get purge $(deborphan -n); done &&
52 (puppet agent -t || true) && (puppet agent -t || true)
55 grep '^nfs$' /etc/modules && ! grep '^nfsv4$' /etc/modules && echo nfsv4 | tee -a /etc/modules
59 mkdir /etc/apache2/conf.d.WHEEZY &&
60 cd /etc/apache2/conf.d &&
62 diff -u $i ../conf-enabled/$i.conf && mv -v $i ../conf.d.WHEEZY/
68 move sites-available file to foo.conf,
69 remove dangling symlink in sites-enabled,
71 replace all order allow,deny, allow from all with
76 (puppet agent -t || true) &&
77 (puppet agent -t || true) &&
78 samhain --foreground -t init -p none -s none -l none -m none
80 Add the new ed25519 ssh host key:
82 echo; echo "cat << EOF | ldapmodify -ZZ -x -D uid="\$USER",ou=users,dc=debian,dc=org -W -h db.debian.org"; echo "dn: host=`hostname`,ou=hosts,dc=debian,dc=org"; echo "changetype: modify"; echo "add: sshRSAHostKey"; echo "sshRSAHostKey: `cat /etc/ssh/ssh_host_ed25519_key.pub `"; echo; echo "EOF"; echo
83 and paste it on draghi.
85 update dsa-nagios.git (add host to jessie hostgroup)