This idea was imported from Canny. Originally created by: Peter Howe. The current owner is: Unassigned.
I power-off machines to park them while they are waiting for next steps. Powering them off during the initial custom iPXE script would be most convenient. should be as easy as adding "#define POWEROFF_CMD " to https://github.com/tinkerbell/ipxedust/blob/main/binary/script/ipxe-customizations/common.h see https://ipxe.org/buildcfg/poweroff_cmd for more info
This comment was imported from Canny. Originally created by: Marques Johansson with 0 likes.
Following up a little late here, but this feature was deployed soon after the PR previously mentioned was merged. It is possible to run the following, using the Metal CLI for example, to have a node immediately shutdown upon initial provision: metal device create --operating-system custom_ipxe --userdata $'#!ipxe\necho "shutting off via ipxe userdata"\npoweroff\n' After doing so, the request should be followed with a shutdown API command so that the API status reflects the server status: metal device stop -i $DEVICE_ID
This comment was imported from Canny. Originally created by: Marques Johansson with 0 likes.
I opened a PR at https://github.com/tinkerbell/ipxedust/pull/27
This comment was imported from Canny. Originally created by: Marques Johansson with 2 likes.
It would help some use-cases (including this one) for the Equinix Metal API to discover when a machine has been powered down.