-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #396 from rackerlabs/flavor-schema
feat: flavor schema for ironic hw detect
- Loading branch information
Showing
6 changed files
with
118 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../schema/flavor.schema.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://rackerlabs.github.io/understack/schema/flavor.schema.json", | ||
"title": "UnderStack Hardware Flavor", | ||
"description": "Server flavor configuration schema", | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"description": "Flavor name for specified configuration (ie gp01.s)", | ||
"type": "string" | ||
}, | ||
"manufacturer": { | ||
"description": "Manufacturer of the hardware chassis", | ||
"type": "string" | ||
}, | ||
"model": { | ||
"description": "Model of the hardware chassis", | ||
"type": "string" | ||
}, | ||
"cpu_cores": { | ||
"description": "Total CPU cores.", | ||
"type": "number" | ||
}, | ||
"cpu_model": { | ||
"description": "Processor model", | ||
"type": "string" | ||
}, | ||
"cpu_models": { | ||
"description": "Processor models", | ||
"type": "array", | ||
"items": { | ||
"type": "string", | ||
"description": "Processor model" | ||
}, | ||
"minItems": 1, | ||
"maxItems": 1 | ||
}, | ||
"memory_gb": { | ||
"description": "Total memory in GB", | ||
"type": "number" | ||
}, | ||
"memory_modules": { | ||
"description": "Memory modules", | ||
"type": "array", | ||
"items": { | ||
"type": "number", | ||
"description": "Capacity in GB" | ||
} | ||
}, | ||
"drives": { | ||
"description": "Drives", | ||
"type": "array", | ||
"items": { | ||
"type": "number", | ||
"description": "Capacity in GB" | ||
} | ||
}, | ||
"pci": { | ||
"description": "PCI devices", | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"description": "PCI device", | ||
"properties": { | ||
"vendor_id": { | ||
"type": "string" | ||
}, | ||
"device_id": { | ||
"type": "string" | ||
}, | ||
"sub_vendor_id": { | ||
"type": "string" | ||
}, | ||
"sub_device_id": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": ["vendor_id", "device_id", "sub_vendor_id", "sub_device_id"] | ||
|
||
} | ||
} | ||
}, | ||
"required": [ "name", "manufacturer", "model", "cpu_cores", "cpu_models", "memory_gb", "drives" ] | ||
} |