Closed gauravgahlot closed 4 years ago
Boots shall continue to support the existing model and shall also support the new model described below for tinkerbell.
The new data model:
{ "id": "fde7c87c-d154-447e-9fce-7eb7bdec90c0", "dhcp": { "mac": "00:00:00:00:00:00", // MAC address for lookup0 "ip": "172.16.1.35/31", // IP to hand out "hostname": "server001", // hostname (optional, no default) "lease_time": 86400, // expiration in secs (optional, default: 86400) "name_servers": [ .. ], // DNS servers (optional, no default) "time_servers": [ .. ], // NTP servers (optional, no default) "gateway": "192.168.1.1" // gateway address (optional? no default) "arch": <string> // Architecture of machine "uefi": <bool> }, "netboot": { "allow_pxe": <bool>, "allow_workflow": <bool>, "ipxe": { "url": "http://<url>/menu.ipxe", "contents": "#!ipxe" }, "bootstrapper": { "kernel": "http://<url-to>/kernel", "initrd": "http://<url-to>/initrd", "os": "http://<url-to>/osie" } }, "network": [{ "dhcp": { // any global "dhcp" settings can be overridden here }, "netboot": { // any global "netboot" settings can be overridden here } }], "metadata": { "state" : <string> // state of the hardware "bonding_mode" : <int> "manufacturer" : { "id": <string>, "slug": <string> } "instance": { ... }, "custom": { "preinstalled_operating_system_version: {...}, "private_subnets": [<string>] }, "facility": { "plan_slug": <string>, "plan_version_slug": <string>, "facility_code":<string> } } }
Ref proposal RFC #1 Merge Hardware and Target models
Boots shall continue to support the existing model and shall also support the new model described below for tinkerbell.
The new data model: