mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00

They can both be set independently now. If the bootstrap mirror is not set, it falls back to the apt mirror, which in turn falls back to the geo redirector.
138 lines
3.1 KiB
JSON
138 lines
3.1 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"title": "Generic manifest",
|
|
"type": "object",
|
|
"properties": {
|
|
"provider": {
|
|
"type": "string"
|
|
},
|
|
"bootstrapper": {
|
|
"type": "object",
|
|
"properties": {
|
|
"workspace": { "$ref": "#/definitions/path" },
|
|
"mirror": { "type": "string", "format": "uri" },
|
|
"tarball": { "type": "boolean" }
|
|
},
|
|
"required": ["workspace"]
|
|
},
|
|
"system": {
|
|
"type": "object",
|
|
"properties": {
|
|
"release": { "enum": ["wheezy"] },
|
|
"architecture": { "enum": ["i386", "amd64"] },
|
|
"timezone": { "type": "string" },
|
|
"locale": { "type": "string" },
|
|
"charmap": { "type": "string" }
|
|
},
|
|
"required": ["release", "architecture", "timezone", "locale", "charmap"]
|
|
},
|
|
"packages": {
|
|
"type": "object",
|
|
"properties": {
|
|
"mirror": { "type": "string", "format": "uri" },
|
|
"sources": {
|
|
"type": "object",
|
|
"patternProperties": {
|
|
"^\\w+$": {
|
|
"type": "array",
|
|
"items": {"type": "string"},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"minItems": 1
|
|
},
|
|
"remote": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {"type": "string"},
|
|
"target": {"type": "string"}
|
|
},
|
|
"required": ["name"]
|
|
},
|
|
{ "type": "string" }
|
|
]
|
|
},
|
|
"minItems": 1
|
|
},
|
|
"local": {
|
|
"type": "array",
|
|
"items": { "$ref": "#/definitions/absolute_path" },
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"volume": {
|
|
"type": "object",
|
|
"properties": {
|
|
"backing": { "type": "string" },
|
|
"partitions": {
|
|
"type": "object",
|
|
"oneOf": [
|
|
{ "$ref": "#/definitions/no_partitions" },
|
|
{ "$ref": "#/definitions/partition_table" }
|
|
]
|
|
}
|
|
},
|
|
"required": ["partitions"]
|
|
},
|
|
"plugins": {
|
|
"type": "object",
|
|
"patternProperties": {
|
|
"^\\w+$": {
|
|
"type": "object"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": ["provider", "bootstrapper", "volume", "system"],
|
|
"definitions": {
|
|
"path": {
|
|
"type": "string",
|
|
"pattern": "^[^\\0]+$"
|
|
},
|
|
"absolute_path": {
|
|
"type": "string",
|
|
"pattern": "^/[^\\0]+$"
|
|
},
|
|
"no_partitions": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": { "enum": ["none"] },
|
|
"root": { "$ref": "#/definitions/partition" }
|
|
},
|
|
"required": ["root"],
|
|
"additionalProperties": false
|
|
},
|
|
"partition_table": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": { "enum": ["mbr", "gpt"] },
|
|
"boot": { "$ref": "#/definitions/partition" },
|
|
"root": { "$ref": "#/definitions/partition" },
|
|
"swap": {
|
|
"type": "object",
|
|
"properties": { "size": { "type": "integer", "minimum": 1 } },
|
|
"required": ["size"]
|
|
}
|
|
},
|
|
"required": ["root"],
|
|
"additionalProperties": false
|
|
},
|
|
"partition": {
|
|
"type": "object",
|
|
"properties": {
|
|
"size": { "type": "integer", "minimum": 1 },
|
|
"filesystem": { "enum": ["ext2", "ext3", "ext4", "xfs"] }
|
|
},
|
|
"required": ["size", "filesystem"]
|
|
}
|
|
},
|
|
"required": ["provider", "bootstrapper", "system", "packages", "volume"]
|
|
}
|