Skip to content

Commit

Permalink
[service] Add a draft JSON schema for autoinstallation
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Feb 26, 2023
1 parent 8d1b601 commit 514becb
Showing 1 changed file with 102 additions and 0 deletions.
102 changes: 102 additions & 0 deletions service/share/schema/profile.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/d-installer/profile.schema.json",
"title": "Profile",
"description": "Profile definition for automated installation",
"type": "object",
"additionalProperties": false,
"properties": {
"software": {
"description": "Software settings",
"type": "object",
"properties": {
"product": {
"description": "Product identifier",
"type": "string"
}
},
"required": [
"product"
]
},
"user": {
"description": "User settings",
"type": "object",
"properties": {
"fullName": {
"description": "User full name",
"type": "string"
},
"userName": {
"description": "User login name",
"type": "string"
},
"password": {
"description": "User password",
"type": "string"
}
},
"required": [
"fullName",
"userName",
"password"
]
},
"localization": {
"description": "Localization settings",
"type": "object",
"properties": {
"language": {
"description": "System language ID",
"type": "string"
},
"userName": {
"description": "Keyboard layout ID",
"type": "string"
}
}
},
"storage": {
"description": "Storage settings",
"type": "object",
"properties": {
"devices": {
"description": "Storage devices to use in the proposal",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"scripts": {
"description": "Installation scripts",
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"type": {
"description": "Script type ('pre' or 'post')",
"type": "string",
"enum": [
"pre",
"post"
]
},
"source": {
"description": "Script sources",
"type": "string"
},
"url": {
"description": "URL of the script",
"type": "string"
}
}
}
}
},
"required": [
"software"
]
}

0 comments on commit 514becb

Please sign in to comment.