We have to migrate our existing hosts to UEFI.
Also, new hosts should be installed with UEFI.
During the migration, we have to maintain two lines on preseed with the appropiated recipes.
For UEFI:
To keep /srv: reuse-db-efi.cfg: https://github.com/wikimedia/operations-puppet/blob/production/modules/profile/data/profile/installserver/preseed.yaml#L228
To fully erase a host: db-efi.cfg https://github.com/wikimedia/operations-puppet/blob/production/modules/profile/data/profile/installserver/preseed.yaml#L215
Note: After migrating a host to UEFI the host will not be able to get reimaged preserving /srv/ so formatting everything will be needed see: T412807#11480523
In order to migrate an existing host to UEFI we have to re-run the sre.hosts.provision cookbook for it. UEFI mode is now the default it will set, we also add the following flags for an existing host to skip some of the "day one" setup:
sudo cookbook sre.hosts.provision --no-switch --no-users --no-dhcp <hostname>
Query to see which hosts have been migrated:
sudo cumin 'A:uefi-boot and A:db-all'
To check which hosts are pending to be migrated:
sudo cumin 'A:bios-boot and A:db-all'
The idea is to install new hosts with UEFI and old ones will be slowly being retired as they get refreshed. We shouldn't actively migrate to UEFI unless a host needs to be fully formatted/recloned.