This task will track the #decommission of [[ https://netbox.wikimedia.org/dcim/devices/1023/ | graphite2001/WMF6160 ]]
[x] - all system services confirmed offline from production use
[x] - set all icinga checks to maint mode/disabled while reclaim/decommmission takes place. (handled by wmf-decommission-host)
[x] - remove system from all lvs/pybal active configuration
[x] - any service group puppet/heira/dsh config removed
[x] - remove site.pp (replace with role(spare::system) if system isn't shut down immediately during this process.)
START NON-INTERRUPPTABLE STEPS
[x] - disable puppet on host
[x] - power down host
[x] - update status in netbox (inventory for decom, inventory for spare) - updated to planned since we aren't certain of host's future.
[x] - disable switch port
[x] - switch port assignment noted on this task (for later removal) - asw-b-codfw:ge-5/0/1 - asset tag set to port description
[x] - remove all remaining puppet references (include role::spare)
[] - remove production dns entries & mgmt dns entries for the hostname, leave mgmt dns entries for asset tag in palce
[x] - puppet node clean, puppet node deactivate (handled by wmf-decommission-host)
[x] - remove dbmonitor entries on neodymium/sarin: sudo curl -X DELETE https://debmonitor.discovery.wmnet/hosts/${HOST_FQDN} --cert /etc/debmonitor/ssl/cert.pem --key /etc/debmonitor/ssl/server.key (handled by wmf-decommission-host)
END NON-INTERRUPPTABLE STEPS
[x] - system disks wiped (by onsite)
[] - IF DECOM: system unracked and decommissioned (by onsite), update netbox status to offline and remove from rack in netbox.
[] - IF DECOM: switch port configration removed from switch once system is unracked.
[] - IF DECOM: add system to decommission tracking google sheet
[] - IF DECOM: asset tag mgmt dns entries removed.
[] - IF RECLAIM: remove the hostname label and system is already back in 'spares pool' by having the asset tag name in netbox and state of 'inventory'