bootstrap-vz/base/manifest-schema.json
2013-07-08 23:14:01 +02:00

61 lines
1.2 KiB
JSON

{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Generic manifest",
"type": "object",
"properties": {
"provider": {
"type": "string"
},
"bootstrapper": {
"type": "object",
"properties": {
"mount_dir": { "type": "string" },
"tarball": { "type": "boolean" },
"tarball_dir": { "type": "string" }
},
"required": ["mount_dir"]
},
"system": {
"type": "object",
"properties": {
"release": {
"type": "string",
"enum": ["wheezy"]
},
"architecture": {
"type": "string",
"enum": ["i386", "amd64"]
},
"timezone": { "type": "string" },
"locale": { "type": "string" },
"charmap": { "type": "string" }
},
"required": ["release", "architecture", "timezone", "locale", "charmap"]
},
"volume": {
"type": "object",
"properties": {
"size": {
"type": "integer"
}
},
"required": ["size"]
},
"plugins": {
"type": "object",
"patternProperties": {
"^\\w+$": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
}
},
"required": ["enabled"]
}
},
"additionalProperties": false
}
},
"required": ["provider", "bootstrapper", "volume", "system"]
}