Commit 49433038 authored by Rafael Monnerat's avatar Rafael Monnerat

kvm: Include a simplified version for KVM Cluster parameters

  This version only display informations to change keyboard and set a NDB.
parent 867f7b85
{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Input Parameters",
"properties": {
"kvm-partition-dict": {
"title": "kvm instances definition",
"description": "kvm instances definition",
"patternProperties": {
".*": {
"properties": {
"state": {
"title": "State of this Virtual Machine",
"description": "Define if SlapOS should start or stop this VM.",
"type": "string",
"default": "started",
"enum": [
"started",
"stopped"
]
},
"keyboard-layout-language": {
"title": "Use keyboard layout language",
"description": "Use keyboard layout language (for example fr for French). Can be usefull with VNC display",
"type": "string",
"enum": [
"ar",
"da",
"de",
"de-ch",
"en-gb",
"en-us",
"es",
"et",
"fi",
"fo",
"fr",
"fr-be",
"fr-ca",
"fr-ch",
"hr",
"hu",
"is",
"it",
"ja",
"lt",
"lv",
"mk",
"nl",
"nl-be",
"no",
"pl",
"pt",
"pt-br",
"ru",
"sl",
"sv",
"th",
"tr"
],
"default": "fr"
},
"nbd-host": {
"title": "NBD hostname or IP",
"description": "hostname (or IP) of the NBD server containing the boot image.",
"type": "string",
"format": [
"host-name",
"ip-address",
"ipv6"
],
"default": "debian.nbd.vifib.net"
},
"nbd-port": {
"title": "NBD port",
"description": "Port of the NBD server containing the boot image.",
"type": "integer",
"default": 1024,
"minimum": 1,
"maximum": 65535
}
},
"type": "object"
}
},
"type": "object"
}
}
}
......@@ -24,6 +24,15 @@
"request": "instance-kvm-cluster-input-schema.json",
"response": "instance-kvm-output-schema.json",
"index": 2
},
"kvm-cluster-simplified": {
"title": "Basic Cluster",
"description": "Simplified Schema for Cluster KVM",
"software-type": "kvm-cluster",
"serialisation": "json-in-xml",
"request": "instance-kvm-cluster-simplified-input-schema.json",
"response": "instance-kvm-output-schema.json",
"index": 3
}
}
}
  • BTW, there are duplication in KVM parameters schemas, that could probably be factorized.

    ERP5 instance schemas are probably a good starting point, also https://json-schema.org/understanding-json-schema/structuring.html

    PS: I'm not saying "we should do it now", just leaving a note here for later reference.

  • mentioned in merge request !425 (merged)

    Toggle commit list
  • I don't want to make complex schemas impossible to read like ERP5. But schemas can evolve, as it is not the core problem currently.

    I need also schemas which are compatible with the form rendering on present on SlapOS Master currently (even if I use only a subset of features). Produce perfect schemas that don't render in master are quite useless currently 😄

Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment