204d2b5fa09784c7f8d363dafef04b455fba74a3
[mirror/dsa-wiki.git] / input / howto / decomission.mdwn
1 # Decomissioning hosts
2
3  * Get rid of any services running on the host.
4  * Optional, shut down the machine, then wait a month
5  * Zero disks
6
7     badblocks -v -s -p 5 -w -f DEVICE_GOES_HERE
8
9  * Revoke puppet certificate
10
11    * on handel: puppet node clean $HOST
12    * reinit samhain on handel
13
14  * Remove from LDAP
15    * rerun puppet on backuphost / the backup host
16    * reinit samhain on backuphost
17  * Remove from Nagios
18  * Remove any references from puppet configuration
19  * Remove references to the host from DNS files, including reverse DNS
20  * Get rid of the HW (tell the hoster to get rid of it or other as appropriate)
21  * Remove MQ queues related to machine (see [[doc/mq]] for details)
22
23     for queue in $(rabbitmqadmin -N rainier list queues name | \
24     grep unger.debian.org | \
25     awk '{print $2}') ; do
26     rabbitmqadmin -N rainier -V dsa delete queue name=$queue
27     done
28
29 Three months after decomissioning:
30
31  * Remove backups