Skip to content

🌱 Create Host Yaml#1

Open
guettli wants to merge 2 commits intomainfrom
tg/createhosttemplate
Open

🌱 Create Host Yaml#1
guettli wants to merge 2 commits intomainfrom
tg/createhosttemplate

Conversation

@guettli
Copy link
Copy Markdown
Collaborator

@guettli guettli commented Apr 8, 2026

Summary

This PR adds a new create-host-yaml command and updates the existing CLI ergonomics around host validation.

Changes

add sub-command caphcli create-host-yaml SERVER_ID OUTPUT_FILE:

  • connect to Hetzner Robot, reboot the server into rescue, inspect disks, and write a HetznerBareMetalHost YAML file
  • include all discovered WWNs in the generated YAML while leaving exactly one WWN uncommented
  • select the active WWN from the smallest disk larger than 1 GB, breaking ties by WWN

change caphcli check-bm-servers to take the YAML file as a positional argument instead of --file

update generated CLI help and README examples

@guettli guettli requested a review from janiskemper April 8, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant