1 # Upgrade from wheezy to jessie
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#wheezy#jessie#g" /etc/apt/sources.list.d/buildd.debian.org.list
24 apt-get install dpkg apt samhain pinentry-curses &&
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) &&
31 apt-get dist-upgrade &&
32 apt-get purge ruby1.8 libffi5:amd64 emacs23-nox libruby1.9.1 libfilesystem-ruby1.9.1 libruby1.8 emacs23-common ruby1.9.1 emacs23-bin-common &&
33 apt-get --purge autoremove &&
34 while [ "$(deborphan -n | wc -l)" -gt 0 ] ; do apt-get purge $(deborphan -n); done &&
39 purge removed packages
41 dpkg --get-selections | awk '$2=="deinstall" {print $1}' &&
42 echo "really purge these [y/N]?" && read ans && [ "$ans" = "y" ] && dpkg --purge `dpkg --get-selections | awk '$2=="deinstall" {print $1}'` &&
43 echo "These are not at install:" && dpkg --get-selections | awk '$2!="install" {print $1}'
47 /usr/lib/nagios/plugins/dsa-check-packages | tr -d ,
51 apt-get --purge autoremove &&
52 while [ "$(deborphan -n | wc -l)" -gt 0 ] ; do apt-get purge $(deborphan -n); done
54 (puppet agent -t || true) && (puppet agent -t || true)
57 grep '^nfs$' /etc/modules && ! grep '^nfsv4$' /etc/modules && echo nfsv4 | tee -a /etc/modules
61 mkdir /etc/apache2/conf.d.WHEEZY &&
62 cd /etc/apache2/conf.d &&
64 diff -u $i ../conf-enabled/$i.conf && mv -v $i ../conf.d.WHEEZY/
70 move sites-available file to foo.conf,
71 if they exist: move sites-available/RCS and sites-staging files to foo.conf,v and foo.conf
72 remove dangling symlink in sites-enabled,
74 replace all order allow,deny, allow from all with
77 Add the new ed25519 ssh host key:
81 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)
87 re-init samhain and finish with a reboot
89 (puppet agent -t || true) &&
90 (puppet agent -t || true) &&
91 (puppet agent -t || true) &&
92 samhain --foreground -t update -p none -s none -l none -m none &&