Added reference schema for system setup

Co-authored-by: Didier Roche <didrocks@ubuntu.com>
This commit is contained in:
Jean-Baptiste Lallement 2021-09-08 17:53:27 +02:00 committed by Didier Roche
parent b81447c988
commit 475e900570
2 changed files with 151 additions and 0 deletions

View File

@ -87,6 +87,7 @@ gitdeps: curtin probert
schema: gitdeps
@$(PYTHON) -m subiquity.cmd.schema > autoinstall-schema.json
@$(PYTHON) -m system_setup.cmd.schema > autoinstall-system-setup-schema.json
clean:
./debian/rules clean

View File

@ -0,0 +1,150 @@
{
"type": "object",
"properties": {
"version": {
"type": "integer",
"minimum": 1,
"maximum": 1
},
"early-commands": {
"type": "array",
"items": {
"type": [
"string",
"array"
],
"items": {
"type": "string"
}
}
},
"reporting": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
},
"required": [
"type"
],
"additionalProperties": true
}
},
"error-commands": {
"type": "array",
"items": {
"type": [
"string",
"array"
],
"items": {
"type": "string"
}
}
},
"locale": {
"type": "string"
},
"identity": {
"type": "object",
"properties": {
"realname": {
"type": "string"
},
"username": {
"type": "string"
},
"password": {
"type": "string"
}
},
"required": [
"username",
"password"
],
"additionalProperties": false
},
"wslconfbase": {
"type": "object",
"properties": {
"custom_path": {
"type": "string"
},
"custom_mount_opt": {
"type": "string"
},
"gen_host": {
"type": "boolean"
},
"gen_resolvconf": {
"type": "boolean"
}
},
"required": [],
"additionalProperties": false
},
"wslconfadvanced": {
"type": "object",
"properties": {
"interop_enabled": {
"type": "boolean"
},
"interop_appendwindowspath": {
"type": "boolean"
},
"gui_theme": {
"type": "string"
},
"gui_followwintheme": {
"type": "boolean"
},
"legacy_gui": {
"type": "boolean"
},
"legacy_audio": {
"type": "boolean"
},
"adv_ip_detect": {
"type": "boolean"
},
"wsl_motd_news": {
"type": "boolean"
},
"automount": {
"type": "boolean"
},
"mountfstab": {
"type": "boolean"
}
},
"required": [],
"additionalProperties": false
},
"late-commands": {
"type": "array",
"items": {
"type": [
"string",
"array"
],
"items": {
"type": "string"
}
}
},
"shutdown": {
"type": "string",
"enum": [
"reboot",
"poweroff"
]
}
},
"required": [
"version"
],
"additionalProperties": true
}