2020-10-06 05:46:28 +03:00
|
|
|
{
|
|
|
|
"$schema": "http://json-schema.org/draft/2019-09/schema#",
|
|
|
|
"title": "Deploy",
|
|
|
|
"description": "Matches a correct deploy attribute of a flake",
|
|
|
|
"definitions": {
|
|
|
|
"generic_settings": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"sshUser": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"user": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"sshOpts": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"fastConnection": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"autoRollback": {
|
|
|
|
"type": "boolean"
|
2020-10-14 05:06:40 +03:00
|
|
|
},
|
|
|
|
"magicRollback": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"confirmTimeout": {
|
2020-10-14 05:10:07 +03:00
|
|
|
"type": "integer"
|
2020-10-14 05:06:40 +03:00
|
|
|
},
|
|
|
|
"tempPath": {
|
2020-10-14 05:10:07 +03:00
|
|
|
"type": "string"
|
2020-10-06 05:46:28 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"node_settings": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"hostname": {
|
|
|
|
"type": "string"
|
2020-10-06 06:10:41 +03:00
|
|
|
},
|
|
|
|
"profilesOrder": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"uniqueItems": true
|
|
|
|
},
|
|
|
|
"profiles": {
|
|
|
|
"type": "object",
|
|
|
|
"patternProperties": {
|
|
|
|
"[A-z][A-z0-9_-]*": {
|
|
|
|
"allOf": [
|
|
|
|
{
|
|
|
|
"$ref": "#/definitions/generic_settings"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"$ref": "#/definitions/profile_settings"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
2020-10-06 05:46:28 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"hostname"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"profile_settings": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"path": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2020-10-10 20:31:55 +03:00
|
|
|
"profilePath": {
|
|
|
|
"type": "string"
|
2020-10-06 05:46:28 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"path"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"type": "object",
|
|
|
|
"allOf": [
|
|
|
|
{
|
|
|
|
"$ref": "#/definitions/generic_settings"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"nodes": {
|
|
|
|
"type": "object",
|
|
|
|
"patternProperties": {
|
|
|
|
"[A-z][A-z0-9_-]*": {
|
|
|
|
"allOf": [
|
|
|
|
{
|
|
|
|
"$ref": "#/definitions/generic_settings"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"$ref": "#/definitions/node_settings"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2020-11-11 02:36:46 +03:00
|
|
|
}
|