X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=input%2Fhowto%2Fupgrade-to-jessie.mdwn;h=cbb15f1e78db3aa10c5fda9e5d47e6dee7fcc2b6;hb=49220bec57bbba0b0415fa9e1be1be274c1d35c3;hp=f2e9c7daf9ecfb9c8ac3e4755b6b3000705ee6e5;hpb=21164462e4aa612b666e331dfa8a4c7a0b180b5c;p=mirror%2Fdsa-wiki.git diff --git a/input/howto/upgrade-to-jessie.mdwn b/input/howto/upgrade-to-jessie.mdwn index f2e9c7d..cbb15f1 100644 --- a/input/howto/upgrade-to-jessie.mdwn +++ b/input/howto/upgrade-to-jessie.mdwn @@ -43,14 +43,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) && - samhain --foreground -t init -p none -s none -l none -m none + (puppet agent -t || true) && (puppet agent -t || true) + +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 @@ -59,4 +78,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 init -p none -s none -l none -m none && + /sbin/reboot