X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=input%2Fhowto%2Fupgrade-to-jessie.mdwn;h=c783ad439e0697716f7428166daf843e076ff6f6;hb=08348af9d0ff2f360a8719885b933bf932f76fdd;hp=9463dd4cb8943a12f06a7e7249ba5a8a8dc80f32;hpb=5f39289adf35528dc3c5ab253850294b2d455587;p=mirror%2Fdsa-wiki.git diff --git a/input/howto/upgrade-to-jessie.mdwn b/input/howto/upgrade-to-jessie.mdwn index 9463dd4..c783ad4 100644 --- a/input/howto/upgrade-to-jessie.mdwn +++ b/input/howto/upgrade-to-jessie.mdwn @@ -6,11 +6,7 @@ general developer box. on buildds: - cd ~buildd - sudo su - buildd - touch NO-DAEMON-PLEASE EXIT-DAEMON-PLEASE && exit - - now wait for the buildd to quit + buildds want moving to the new puppetized setup! upgrade stuff: @@ -32,6 +28,7 @@ commands: samhain --foreground -t init -p none -s none -l none -m none && (puppet agent -t || true) && apt-get dist-upgrade && + 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 && apt-get --purge autoremove && while [ "$(deborphan -n | wc -l)" -gt 0 ] ; do apt-get purge $(deborphan -n); done && dpkg --clear-avail && @@ -47,14 +44,33 @@ purge removed packages more clean ups: /usr/lib/nagios/plugins/dsa-check-packages | tr -d , + (apt-get purge them) - apt-get --purge autoremove -re-init samhain + apt-get --purge autoremove && + while [ "$(deborphan -n | wc -l)" -gt 0 ] ; do apt-get purge $(deborphan -n); done + + (puppet agent -t || true) && (puppet agent -t || true) - (puppet agent -t || true) && - (puppet agent -t || true) && - samhain --foreground -t init -p none -s none -l none -m none +nfs kernel module fu: + grep '^nfs$' /etc/modules && ! grep '^nfsv4$' /etc/modules && echo nfsv4 | tee -a /etc/modules + +apache cleanup: + + mkdir /etc/apache2/conf.d.WHEEZY && + cd /etc/apache2/conf.d && + for i in *; do + diff -u $i ../conf-enabled/$i.conf && mv -v $i ../conf.d.WHEEZY/ + done && + cd .. && + rmdir conf.d + + per vhost: + move sites-available file to foo.conf, + remove dangling symlink in sites-enabled, + a2ensite foo + replace all order allow,deny, allow from all with + Require all granted Add the new ed25519 ssh host key: run @@ -63,4 +79,9 @@ Add the new ed25519 ssh host key: update dsa-nagios.git (add host to jessie hostgroup) -reboot. +re-init samhain and finish with a reboot + + (puppet agent -t || true) && + (puppet agent -t || true) && + samhain --foreground -t update -p none -s none -l none -m none && + /sbin/reboot