-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[service] Add a draft JSON schema for autoinstallation
- Loading branch information
Showing
1 changed file
with
102 additions
and
0 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,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" | ||
] | ||
} |