Commit 242e94db authored by Rafael Monnerat's avatar Rafael Monnerat

kvm: Fix resilient json schema

parent c1c02ff7
{ {
"type": "object", "type": "object",
"$schema": "http://json-schema.org/draft-04/schema", "$schema": "http://json-schema.org/draft-04/schema",
"items": { "allOf": [
"allOf": [ {
{ "$ref": "instance-kvm-input-schema.json#/"
"$ref": "instance-kvm-input-schema.json" },
} {
], "properties": {
"title": "Input Parameters", "-sla-0-computer_guid": {
"properties": { "title": "Target computer for main instance",
"-sla-0-computer_guid": { "description": "Target computer GUID for main instance.",
"title": "Target computer for main instance", "type": "string",
"description": "Target computer GUID for main instance.", "optional": true
"type": "string" },
}, "-sla-1-computer_guid": {
"-sla-1-computer_guid": { "title": "Target computer for first clone",
"title": "Target computer for first clone", "description": "Target computer for first clone and PBS.",
"description": "Target computer for first clone and PBS.", "type": "string",
"type": "string" "optional": true
}, },
"-sla-2-computer_guid": { "-sla-2-computer_guid": {
"title": "Target computer for second clone", "title": "Target computer for second clone",
"description": "Target computer for second clone and PBS.", "description": "Target computer for second clone and PBS.",
"type": "string" "type": "string",
}, "optional": true
"resiliency-backup-periodicity": { },
"title": "Periodicity of backup", "resiliency-backup-periodicity": {
"description": "Periodicity of backup, in cron format.", "title": "Periodicity of backup",
"type": "string" "description": "Periodicity of backup, in cron format.",
}, "type": "string",
"remove-backup-older-than": { "optional": true
"title": "Remove backups older than...", },
"description": "Remove all the backups in PBS that are older than specified value. It should be rdiff-backup-compatible.", "remove-backup-older-than": {
"type": "string", "title": "Remove backups older than...",
"default": "3B" "description": "Remove all the backups in PBS that are older than specified value. It should be rdiff-backup-compatible.",
}, "type": "string",
"resilient-clone-number": { "default": "3B",
"title": "Amount of backup(s) to create", "optional": true
"description": "Amount of backup(s) to create. Each backup consists of a Pull Backup Server and a clone.", },
"type": "integer", "resilient-clone-number": {
"default": 2 "title": "Amount of backup(s) to create",
}, "description": "Amount of backup(s) to create. Each backup consists of a Pull Backup Server and a clone.",
"ignore-known-hosts-file": { "type": "integer",
"title": "Ignore known_hosts file", "default": 2,
"description": "Set either to fill known_hosts file for ssh or not. Useful if main instance and PBS are using the same IP (slapos proxy, webrunner).", "optional": true
"type": "boolean", },
"default": false "ignore-known-hosts-file": {
"title": "Ignore known_hosts file",
"description": "Set either to fill known_hosts file for ssh or not. Useful if main instance and PBS are using the same IP (slapos proxy, webrunner).",
"type": "boolean",
"default": false,
"optional": true
}
} }
} }
} ]
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment