Use a baseline hardware profile to decommission servers.
The baseline profile returns a server to a default configuration by securely erasing its disks and restoring default settings. Use the baseline profile to decommission servers and put them in a clean state before they are returned to the pool of available servers.
Baseline profiles are created during Bare Metal Orchestrator deployment. You must edit baseline profiles for each onboarded server. Baseline profiles cannot be deleted.
The baseline profile consists of:
- Factory default BIOS settings
- Factory default baseboard management controller settings
- Factory default BMC settings
- User-defined default firmware versions
- Secure disk erasure
See Sample baseline profile YAML file for an example baseline profile YAML file and Server decommissioning field definitions for baseline hardware-specific attributes.
Selectors and marking servers for decommission
A default baseline profile selector called profileName: profile is used to target specific servers for decommission. You can also add custom selectors to help target specific servers for decommissioning. The server must have labels configured that exactly match the selectors.
For example: if the following is configured in the baseline profile:
selectors:
profileName: profile
decommission: dell-servers20
the servers that have the following labels configured are targeted for decommissioning:
labels:
profileName: profile
decommission: dell-servers20
Use a baseline profile to decommission a server
To decommission a server, edit the server configuration and add the label that matches the selector that was added to the hardware profile, see Edit the server configuration.
Bare Metal Orchestrator polls servers at regular intervals. If Bare Metal Orchestrator finds a matching profile label, it applies the baseline profile.
Secure disk erasure
Decommissioning a server is one way to securely erase a disk. You can also securely erase a disk without decommissioning a server. See Decommission disks.