by Ossi Hanhinen, @ohanhi
with the support of Futurice 💚.
Licensed under CC BY 4.0.
| #!/usr/bin/env python3 | |
| from enum import Enum | |
| from typing import Optional | |
| from pydantic import BaseModel, Field | |
| class ActionType(str, Enum): | |
| ADD = "add" | |
| DELETE = "delete" |
| #!/usr/bin/env bash | |
| # This assumes a booted rescue system, copies the installation media to the destination disk | |
| # it'll then add a CIDATA partition to the end of the disk, and prepare it with user-data | |
| # used in a terraform ssh provisioner, but extracted to here for now. | |
| destination_disk=/dev/nvme0n1 | |
| talos_version=v0.14.3 | |
| wipefs -af $destination_disk | |
| wget https://github.com/talos-systems/talos/releases/download/${talos_version}/nocloud-amd64.raw.xz |