Commit dc428cf6 authored by Jérome Perrin's avatar Jérome Perrin

*: reformat json with format-json

parent cecf100b
...@@ -18,7 +18,10 @@ ...@@ -18,7 +18,10 @@
}, },
"serialisation": { "serialisation": {
"description": "How the parameters and results are serialised", "description": "How the parameters and results are serialised",
"enum": ["xml", "json-in-xml"], "enum": [
"xml",
"json-in-xml"
],
"type": "string" "type": "string"
}, },
"software-type": { "software-type": {
...@@ -44,7 +47,10 @@ ...@@ -44,7 +47,10 @@
}, },
"serialisation": { "serialisation": {
"description": "How the parameters and results are serialised, if different from global setting, required if global setting is not provided", "description": "How the parameters and results are serialised, if different from global setting, required if global setting is not provided",
"enum": ["xml", "json-in-xml"], "enum": [
"xml",
"json-in-xml"
],
"type": "string" "type": "string"
}, },
"request": { "request": {
...@@ -55,11 +61,11 @@ ...@@ -55,11 +61,11 @@
"description": "URL, relative to Software Release base path, of a json schema for values published by instance of current software type", "description": "URL, relative to Software Release base path, of a json schema for values published by instance of current software type",
"type": "string" "type": "string"
}, },
"software-type" : { "software-type": {
"description": "Value to be used as software type instead of the software type id (in order to use multiple diferent forms for the same software type).", "description": "Value to be used as software type instead of the software type id (in order to use multiple diferent forms for the same software type).",
"type": "string" "type": "string"
}, },
"shared" : { "shared": {
"description": "Define if the request will request a Slave or Software Instance.", "description": "Define if the request will request a Slave or Software Instance.",
"default": "false", "default": "false",
"type": "boolean" "type": "boolean"
...@@ -78,4 +84,3 @@ ...@@ -78,4 +84,3 @@
}, },
"type": "object" "type": "object"
} }
...@@ -6,21 +6,40 @@ ...@@ -6,21 +6,40 @@
"schemaArray": { "schemaArray": {
"type": "array", "type": "array",
"minItems": 1, "minItems": 1,
"items": { "$ref": "#" } "items": {
"$ref": "#"
}
}, },
"positiveInteger": { "positiveInteger": {
"type": "integer", "type": "integer",
"minimum": 0 "minimum": 0
}, },
"positiveIntegerDefault0": { "positiveIntegerDefault0": {
"allOf": [ { "$ref": "#/definitions/positiveInteger" }, { "default": 0 } ] "allOf": [
{
"$ref": "#/definitions/positiveInteger"
},
{
"default": 0
}
]
}, },
"simpleTypes": { "simpleTypes": {
"enum": [ "array", "boolean", "integer", "null", "number", "object", "string" ] "enum": [
"array",
"boolean",
"integer",
"null",
"number",
"object",
"string"
]
}, },
"stringArray": { "stringArray": {
"type": "array", "type": "array",
"items": { "type": "string" }, "items": {
"type": "string"
},
"minItems": 1, "minItems": 1,
"uniqueItems": true "uniqueItems": true
} }
...@@ -61,63 +80,99 @@ ...@@ -61,63 +80,99 @@
"type": "boolean", "type": "boolean",
"default": false "default": false
}, },
"maxLength": { "$ref": "#/definitions/positiveInteger" }, "maxLength": {
"minLength": { "$ref": "#/definitions/positiveIntegerDefault0" }, "$ref": "#/definitions/positiveInteger"
},
"minLength": {
"$ref": "#/definitions/positiveIntegerDefault0"
},
"pattern": { "pattern": {
"type": "string", "type": "string",
"format": "regex" "format": "regex"
}, },
"additionalItems": { "additionalItems": {
"anyOf": [ "anyOf": [
{ "type": "boolean" }, {
{ "$ref": "#" } "type": "boolean"
},
{
"$ref": "#"
}
], ],
"default": {} "default": {}
}, },
"items": { "items": {
"anyOf": [ "anyOf": [
{ "$ref": "#" }, {
{ "$ref": "#/definitions/schemaArray" } "$ref": "#"
},
{
"$ref": "#/definitions/schemaArray"
}
], ],
"default": {} "default": {}
}, },
"maxItems": { "$ref": "#/definitions/positiveInteger" }, "maxItems": {
"minItems": { "$ref": "#/definitions/positiveIntegerDefault0" }, "$ref": "#/definitions/positiveInteger"
},
"minItems": {
"$ref": "#/definitions/positiveIntegerDefault0"
},
"uniqueItems": { "uniqueItems": {
"type": "boolean", "type": "boolean",
"default": false "default": false
}, },
"maxProperties": { "$ref": "#/definitions/positiveInteger" }, "maxProperties": {
"minProperties": { "$ref": "#/definitions/positiveIntegerDefault0" }, "$ref": "#/definitions/positiveInteger"
"required": { "$ref": "#/definitions/stringArray" }, },
"minProperties": {
"$ref": "#/definitions/positiveIntegerDefault0"
},
"required": {
"$ref": "#/definitions/stringArray"
},
"additionalProperties": { "additionalProperties": {
"anyOf": [ "anyOf": [
{ "type": "boolean" }, {
{ "$ref": "#" } "type": "boolean"
},
{
"$ref": "#"
}
], ],
"default": {} "default": {}
}, },
"definitions": { "definitions": {
"type": "object", "type": "object",
"additionalProperties": { "$ref": "#" }, "additionalProperties": {
"$ref": "#"
},
"default": {} "default": {}
}, },
"properties": { "properties": {
"type": "object", "type": "object",
"additionalProperties": { "$ref": "#" }, "additionalProperties": {
"$ref": "#"
},
"default": {} "default": {}
}, },
"patternProperties": { "patternProperties": {
"type": "object", "type": "object",
"additionalProperties": { "$ref": "#" }, "additionalProperties": {
"$ref": "#"
},
"default": {} "default": {}
}, },
"dependencies": { "dependencies": {
"type": "object", "type": "object",
"additionalProperties": { "additionalProperties": {
"anyOf": [ "anyOf": [
{ "$ref": "#" }, {
{ "$ref": "#/definitions/stringArray" } "$ref": "#"
},
{
"$ref": "#/definitions/stringArray"
}
] ]
} }
}, },
...@@ -128,23 +183,39 @@ ...@@ -128,23 +183,39 @@
}, },
"type": { "type": {
"anyOf": [ "anyOf": [
{ "$ref": "#/definitions/simpleTypes" }, {
"$ref": "#/definitions/simpleTypes"
},
{ {
"type": "array", "type": "array",
"items": { "$ref": "#/definitions/simpleTypes" }, "items": {
"$ref": "#/definitions/simpleTypes"
},
"minItems": 1, "minItems": 1,
"uniqueItems": true "uniqueItems": true
} }
] ]
}, },
"allOf": { "$ref": "#/definitions/schemaArray" }, "allOf": {
"anyOf": { "$ref": "#/definitions/schemaArray" }, "$ref": "#/definitions/schemaArray"
"oneOf": { "$ref": "#/definitions/schemaArray" }, },
"not": { "$ref": "#" } "anyOf": {
"$ref": "#/definitions/schemaArray"
},
"oneOf": {
"$ref": "#/definitions/schemaArray"
},
"not": {
"$ref": "#"
}
}, },
"dependencies": { "dependencies": {
"exclusiveMaximum": [ "maximum" ], "exclusiveMaximum": [
"exclusiveMinimum": [ "minimum" ] "maximum"
],
"exclusiveMinimum": [
"minimum"
]
}, },
"default": {} "default": {}
} }
...@@ -14,7 +14,10 @@ ...@@ -14,7 +14,10 @@
"serialisation": { "serialisation": {
"description": "How the parameters and results are serialised", "description": "How the parameters and results are serialised",
"require": true, "require": true,
"enum": ["xml", "json-in-xml"], "enum": [
"xml",
"json-in-xml"
],
"type": "string" "type": "string"
}, },
"software-type": { "software-type": {
...@@ -35,7 +38,10 @@ ...@@ -35,7 +38,10 @@
}, },
"serialisation": { "serialisation": {
"description": "How the parameters and results are serialised, if different from global setting", "description": "How the parameters and results are serialised, if different from global setting",
"enum": ["xml", "json-in-xml"], "enum": [
"xml",
"json-in-xml"
],
"type": "string" "type": "string"
}, },
"request": { "request": {
...@@ -48,11 +54,11 @@ ...@@ -48,11 +54,11 @@
"description": "URL, relative to Software Release base path, of a json schema for values published by instance of current software type", "description": "URL, relative to Software Release base path, of a json schema for values published by instance of current software type",
"type": "string" "type": "string"
}, },
"software-type" : { "software-type": {
"description": "Value to be used as software type instead of the software type id (in order to use multiple diferent forms for the same software type).", "description": "Value to be used as software type instead of the software type id (in order to use multiple diferent forms for the same software type).",
"type": "string" "type": "string"
}, },
"shared" : { "shared": {
"description": "Define if the request will request a Slave or Software Instance.", "description": "Define if the request will request a Slave or Software Instance.",
"type": "boolean" "type": "boolean"
}, },
...@@ -69,4 +75,3 @@ ...@@ -69,4 +75,3 @@
}, },
"type": "object" "type": "object"
} }
{ {
"type": "object", "type": "object",
"$schema": "http://json-schema.org/draft-04/schema", "$schema": "http://json-schema.org/draft-04/schema",
"title": "Input Parameters", "title": "Input Parameters",
"properties": { "properties": {
"public-ipv4": { "public-ipv4": {
...@@ -50,7 +49,10 @@ ...@@ -50,7 +49,10 @@
"description": "Use HTTP2 as default Protocol", "description": "Use HTTP2 as default Protocol",
"type": "string", "type": "string",
"default": "true", "default": "true",
"enum": ["true", "false"] "enum": [
"true",
"false"
]
}, },
"re6st-verification-url": { "re6st-verification-url": {
"title": "Test Verification URL", "title": "Test Verification URL",
......
{ {
"type": "object", "type": "object",
"$schema": "http://json-schema.org/draft-04/schema", "$schema": "http://json-schema.org/draft-04/schema",
"title": "Input Parameters", "title": "Input Parameters",
"properties": { "properties": {
"url": { "url": {
...@@ -22,7 +21,6 @@ ...@@ -22,7 +21,6 @@
"type": "string", "type": "string",
"pattern": "^([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}$" "pattern": "^([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}$"
}, },
"server-alias": { "server-alias": {
"title": "Server Alias", "title": "Server Alias",
"description": "Server Alias List separated by space", "description": "Server Alias List separated by space",
...@@ -34,23 +32,26 @@ ...@@ -34,23 +32,26 @@
"description": "Type of slave. If redirect, the slave will redirect to the given url. If zope, the rewrite rules will be compatible with Virtual Host Monster", "description": "Type of slave. If redirect, the slave will redirect to the given url. If zope, the rewrite rules will be compatible with Virtual Host Monster",
"type": "string", "type": "string",
"default": "", "default": "",
"enum": ["", "zope", "redirect", "notebook", "eventsource"] "enum": [
"",
"zope",
"redirect",
"notebook",
"eventsource"
]
}, },
"path": { "path": {
"title": "Backend Path", "title": "Backend Path",
"description": "Path to proxy to in the backend", "description": "Path to proxy to in the backend",
"type": "string", "type": "string",
"default": "" "default": ""
}, },
"default-path": { "default-path": {
"title": "Default Path", "title": "Default Path",
"description": "Provide default path to redirect user to when user access / (the site root)", "description": "Provide default path to redirect user to when user access / (the site root)",
"type": "string", "type": "string",
"default": "" "default": ""
}, },
"ssl_crt": { "ssl_crt": {
"title": "SSL Certificate", "title": "SSL Certificate",
"description": "Content of the SSL Certificate file", "description": "Content of the SSL Certificate file",
...@@ -65,7 +66,6 @@ ...@@ -65,7 +66,6 @@
"textarea": true, "textarea": true,
"default": "" "default": ""
}, },
"ssl_ca_crt": { "ssl_ca_crt": {
"title": "SSL Certificate Authority's Certificate", "title": "SSL Certificate Authority's Certificate",
"description": "Content of the CA certificate file", "description": "Content of the CA certificate file",
...@@ -78,90 +78,101 @@ ...@@ -78,90 +78,101 @@
"description": "If set to true, http requests will be redirected to https", "description": "If set to true, http requests will be redirected to https",
"type": "string", "type": "string",
"default": "false", "default": "false",
"enum": ["false", "true"] "enum": [
"false",
"true"
]
}, },
"ssl-proxy-verify": { "ssl-proxy-verify": {
"title": "Verify Backend Certificates", "title": "Verify Backend Certificates",
"description": "If set to true, Backend SSL Certificates will be checked and frontend will refuse to proxy if certificate is invalid", "description": "If set to true, Backend SSL Certificates will be checked and frontend will refuse to proxy if certificate is invalid",
"type": "string", "type": "string",
"default": "false", "default": "false",
"enum": ["false", "true"] "enum": [
"false",
"true"
]
}, },
"ssl_proxy_ca_crt": { "ssl_proxy_ca_crt": {
"title": "SSL Backend Authority's Certificate", "title": "SSL Backend Authority's Certificate",
"description": "Content of the SSL Certificate Authority file of the backend (to be used with ssl-proxy-verify)", "description": "Content of the SSL Certificate Authority file of the backend (to be used with ssl-proxy-verify)",
"type": "string", "type": "string",
"default": "" "default": ""
}, },
"monitor-ipv6-test": { "monitor-ipv6-test": {
"title": "IPv6 Address to Monitor Packet Lost", "title": "IPv6 Address to Monitor Packet Lost",
"description": "IPv6 Address for the frontend keep monitoring with ping6 (without brackets)", "description": "IPv6 Address for the frontend keep monitoring with ping6 (without brackets)",
"type": "string", "type": "string",
"default": "" "default": ""
}, },
"monitor-ipv4-test": { "monitor-ipv4-test": {
"title": "IPv4 Address to Monitor Packet Lost", "title": "IPv4 Address to Monitor Packet Lost",
"description": "IPv4 Address for the frontend keep monitoring with ping", "description": "IPv4 Address for the frontend keep monitoring with ping",
"type": "string", "type": "string",
"default": "" "default": ""
}, },
"re6st-optimal-test": { "re6st-optimal-test": {
"title": "IPv6 and IPv4 Address to test Re6st", "title": "IPv6 and IPv4 Address to test Re6st",
"description": "IPv6 and IPv6 Address for the frontend test if re6st is on the optimal status (use ipv6,ipv4)", "description": "IPv6 and IPv6 Address for the frontend test if re6st is on the optimal status (use ipv6,ipv4)",
"type": "string", "type": "string",
"default": "" "default": ""
}, },
"enable_cache": { "enable_cache": {
"title": "Enable Cache", "title": "Enable Cache",
"description": "If set to true, http caching server (Apache Traffic Server) will be used between frontend apache and backend", "description": "If set to true, http caching server (Apache Traffic Server) will be used between frontend apache and backend",
"type": "string", "type": "string",
"default": "false", "default": "false",
"enum": ["false", "true"] "enum": [
"false",
"true"
]
}, },
"disable-no-cache-request": { "disable-no-cache-request": {
"title": "Disable 'no-cache' requests", "title": "Disable 'no-cache' requests",
"description": "If set to true, Cache-Control and Pragma requests headers will not be sent to cache and backend servers. This prevents clients from bypassing cache when enable_cache is true", "description": "If set to true, Cache-Control and Pragma requests headers will not be sent to cache and backend servers. This prevents clients from bypassing cache when enable_cache is true",
"type": "string", "type": "string",
"default": "false", "default": "false",
"enum": ["false", "true"] "enum": [
"false",
"true"
]
}, },
"disable-via-header": { "disable-via-header": {
"title": "Disable 'Via' headers from cache", "title": "Disable 'Via' headers from cache",
"description": "If set to true, Via response headers will not be sent to client", "description": "If set to true, Via response headers will not be sent to client",
"type": "string", "type": "string",
"default": "false", "default": "false",
"enum": ["false", "true"] "enum": [
"false",
"true"
]
}, },
"enable-http2": { "enable-http2": {
"title": "Enable HTTP2 Protocol", "title": "Enable HTTP2 Protocol",
"description": "Use HTTP2 Protocol for the site", "description": "Use HTTP2 Protocol for the site",
"type": "string", "type": "string",
"default": "true", "default": "true",
"enum": ["true", "false"] "enum": [
"true",
"false"
]
}, },
"prefer-gzip-encoding-to-backend": { "prefer-gzip-encoding-to-backend": {
"title": "Prefer gzip Encoding for Backend", "title": "Prefer gzip Encoding for Backend",
"description": "If set to true, frontend will rewrite Accept-Encoding request header to simply 'gzip' for all variants of Accept-Encoding containing 'gzip', in order to maximize cache hits for resources cached with Vary: Accept-Encoding when enable_cache is used", "description": "If set to true, frontend will rewrite Accept-Encoding request header to simply 'gzip' for all variants of Accept-Encoding containing 'gzip', in order to maximize cache hits for resources cached with Vary: Accept-Encoding when enable_cache is used",
"type": "string", "type": "string",
"default": "false", "default": "false",
"enum": ["false", "true"] "enum": [
"false",
"true"
]
}, },
"disabled-cookie-list": { "disabled-cookie-list": {
"title": "Disabled Cookies", "title": "Disabled Cookies",
"description": "List of Cookies separated by space that will not be sent to cache and backend servers. This is especially useful to discard analytics tracking cookies when using Vary: Cookie cache headers", "description": "List of Cookies separated by space that will not be sent to cache and backend servers. This is especially useful to discard analytics tracking cookies when using Vary: Cookie cache headers",
"type": "string", "type": "string",
"default": "" "default": ""
}, },
"apache_custom_http": { "apache_custom_http": {
"title": "HTTP configuration", "title": "HTTP configuration",
"description": "Raw http configuration in python template format. Your site will be rejected if you use it without notification and approval of frontend administrators", "description": "Raw http configuration in python template format. Your site will be rejected if you use it without notification and approval of frontend administrators",
......
...@@ -7,7 +7,11 @@ ...@@ -7,7 +7,11 @@
"publish": { "publish": {
"description": "Upload built packages automatically to a Debian repository when successful.", "description": "Upload built packages automatically to a Debian repository when successful.",
"type": "object", "type": "object",
"required": ["suite", "host", "key"], "required": [
"suite",
"host",
"key"
],
"properties": { "properties": {
"suite": { "suite": {
"type": "string" "type": "string"
......
...@@ -5,22 +5,28 @@ ...@@ -5,22 +5,28 @@
"title": "Input Parameters", "title": "Input Parameters",
"properties": { "properties": {
"server-port": { "server-port": {
"allOf": [{ "allOf": [
{
"$ref": "#/definitions/tcpv4port" "$ref": "#/definitions/tcpv4port"
}, { },
{
"title": "http port to use", "title": "http port to use",
"description": "Caucase http port to use.", "description": "Caucase http port to use.",
"default": 8009 "default": 8009
}] }
]
}, },
"server-https-port": { "server-https-port": {
"allOf": [{ "allOf": [
{
"$ref": "#/definitions/tcpv4port" "$ref": "#/definitions/tcpv4port"
}, { },
{
"title": "https port to use", "title": "https port to use",
"description": "Caucase port to use for https connexion.", "description": "Caucase port to use for https connexion.",
"default": 8010 "default": 8010
}] }
]
}, },
"external-url": { "external-url": {
"title": "External http url", "title": "External http url",
......
{ {
"type": "object", "type": "object",
"$schema": "http://json-schema.org/draft-04/schema", "$schema": "http://json-schema.org/draft-04/schema",
"title": "Input Parameters", "title": "Input Parameters",
"properties": { "properties": {
"port": { "port": {
...@@ -16,36 +15,35 @@ ...@@ -16,36 +15,35 @@
"type": "string", "type": "string",
"pattern": "^([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}$" "pattern": "^([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}$"
}, },
"frontend-server-alias": { "frontend-server-alias": {
"title": "Server Alias", "title": "Server Alias",
"description": "Server Alias List separated by space", "description": "Server Alias List separated by space",
"type": "string", "type": "string",
"default": "" "default": ""
}, },
"frontend-type": { "frontend-type": {
"title": "Backend Type", "title": "Backend Type",
"description": "Type of slave. If redirect, the slave will redirect to the given url. If zope, the rewrite rules will be compatible with Virtual Host Monster", "description": "Type of slave. If redirect, the slave will redirect to the given url. If zope, the rewrite rules will be compatible with Virtual Host Monster",
"type": "string", "type": "string",
"default": "", "default": "",
"enum": ["", "zope", "redirect"] "enum": [
"",
"zope",
"redirect"
]
}, },
"frontend-path": { "frontend-path": {
"title": "Backend Path", "title": "Backend Path",
"description": "Path to proxy to in the backend", "description": "Path to proxy to in the backend",
"type": "string", "type": "string",
"default": "" "default": ""
}, },
"frontend-default-path": { "frontend-default-path": {
"title": "Default Path", "title": "Default Path",
"description": "Provide default path to redirect user to", "description": "Provide default path to redirect user to",
"type": "string", "type": "string",
"default": "" "default": ""
}, },
"frontend-ssl_crt": { "frontend-ssl_crt": {
"title": "SSL Certificate", "title": "SSL Certificate",
"description": "SSL Certificate", "description": "SSL Certificate",
...@@ -60,7 +58,6 @@ ...@@ -60,7 +58,6 @@
"textarea": true, "textarea": true,
"default": "" "default": ""
}, },
"frontend-ssl_ca_crt": { "frontend-ssl_ca_crt": {
"title": "SSL Certificate Authority's Certificate", "title": "SSL Certificate Authority's Certificate",
"description": "SSL Key", "description": "SSL Key",
...@@ -74,14 +71,12 @@ ...@@ -74,14 +71,12 @@
"type": "boolean", "type": "boolean",
"default": false "default": false
}, },
"frontend-ssl-proxy-verify": { "frontend-ssl-proxy-verify": {
"title": "Verify Backend Certificates", "title": "Verify Backend Certificates",
"description": "If set to true, Backend Certificates are checked", "description": "If set to true, Backend Certificates are checked",
"type": "boolean", "type": "boolean",
"default": false "default": false
}, },
"frontend-ssl_proxy_ca_crt": { "frontend-ssl_proxy_ca_crt": {
"title": "SSL Backend Authority's Certificate", "title": "SSL Backend Authority's Certificate",
"description": "SSL Certificate Authority of the backen (to be used with ssl-proxy-verify)", "description": "SSL Certificate Authority of the backen (to be used with ssl-proxy-verify)",
...@@ -89,35 +84,30 @@ ...@@ -89,35 +84,30 @@
"textarea": true, "textarea": true,
"default": "" "default": ""
}, },
"frontend-enable_cache": { "frontend-enable_cache": {
"title": "Enable Cache", "title": "Enable Cache",
"description": "If set to true, the cache is used", "description": "If set to true, the cache is used",
"type": "boolean", "type": "boolean",
"default": false "default": false
}, },
"frontend-disable-no-cache-request": { "frontend-disable-no-cache-request": {
"title": "Disable 'no-cache' requests", "title": "Disable 'no-cache' requests",
"description": "If set to true, no-cache control headers will be disabled", "description": "If set to true, no-cache control headers will be disabled",
"type": "boolean", "type": "boolean",
"default": false "default": false
}, },
"frontend-disable-via-header": { "frontend-disable-via-header": {
"title": "Disable 'Via' headers from cache", "title": "Disable 'Via' headers from cache",
"description": "If set to true, via headers will be disabled", "description": "If set to true, via headers will be disabled",
"type": "boolean", "type": "boolean",
"default": false "default": false
}, },
"frontend-prefer-gzip-encoding-to-backend": { "frontend-prefer-gzip-encoding-to-backend": {
"title": "Prefer gzip Encoding for Backend", "title": "Prefer gzip Encoding for Backend",
"description": "If set to true, if a request is made with accept encoding 'gzip', only that one will be transferred to the backend", "description": "If set to true, if a request is made with accept encoding 'gzip', only that one will be transferred to the backend",
"type": "boolean", "type": "boolean",
"default": false "default": false
}, },
"frontend-disabled-cookie-list": { "frontend-disabled-cookie-list": {
"title": "Disabled Cookies", "title": "Disabled Cookies",
"description": "List of Cookies separated by space that will not be sent to the backend", "description": "List of Cookies separated by space that will not be sent to the backend",
......
{ {
"type": "object", "type": "object",
"$schema": "http://json-schema.org/draft-04/schema", "$schema": "http://json-schema.org/draft-04/schema",
"title": "Input Parameters", "title": "Input Parameters",
"properties": { "properties": {
"port": { "port": {
...@@ -16,43 +15,41 @@ ...@@ -16,43 +15,41 @@
"type": "string", "type": "string",
"pattern": "^([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}$" "pattern": "^([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}$"
}, },
"frontend-server-alias": { "frontend-server-alias": {
"title": "Server Alias", "title": "Server Alias",
"description": "Server Alias List separated by space", "description": "Server Alias List separated by space",
"type": "string", "type": "string",
"default": "" "default": ""
}, },
"frontend-type": { "frontend-type": {
"title": "Backend Type", "title": "Backend Type",
"description": "Type of slave. If redirect, the slave will redirect to the given url. If zope, the rewrite rules will be compatible with Virtual Host Monster", "description": "Type of slave. If redirect, the slave will redirect to the given url. If zope, the rewrite rules will be compatible with Virtual Host Monster",
"type": "string", "type": "string",
"default": "", "default": "",
"enum": ["", "zope", "redirect"] "enum": [
"",
"zope",
"redirect"
]
}, },
"frontend-path": { "frontend-path": {
"title": "Backend Path", "title": "Backend Path",
"description": "Path to proxy to in the backend", "description": "Path to proxy to in the backend",
"type": "string", "type": "string",
"default": "" "default": ""
}, },
"frontend-default-path": { "frontend-default-path": {
"title": "Default Path", "title": "Default Path",
"description": "Provide default path to redirect user to", "description": "Provide default path to redirect user to",
"type": "string", "type": "string",
"default": "" "default": ""
}, },
"frontend-https-only": { "frontend-https-only": {
"title": "HTTPS Only", "title": "HTTPS Only",
"description": "If set to true, http request are redirect to https", "description": "If set to true, http request are redirect to https",
"type": "boolean", "type": "boolean",
"default": false "default": false
}, },
"frontend-enable_cache": { "frontend-enable_cache": {
"title": "Enable Cache", "title": "Enable Cache",
"description": "If set to true, the cache is used", "description": "If set to true, the cache is used",
......
...@@ -3,12 +3,15 @@ ...@@ -3,12 +3,15 @@
"extends": "./schema-definitions.json#", "extends": "./schema-definitions.json#",
"properties": { "properties": {
"tcpv4-port": { "tcpv4-port": {
"allOf": [{ "allOf": [
{
"$ref": "#/definitions/tcpv4port" "$ref": "#/definitions/tcpv4port"
}, { },
{
"description": "Start allocating ports at this value, going upward", "description": "Start allocating ports at this value, going upward",
"default": 23000 "default": 23000
}] }
]
}, },
"backend-count": { "backend-count": {
"description": "Number of backend cloudooo instances", "description": "Number of backend cloudooo instances",
......
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
"description": "Where to request instances. Each key is a query string for criterions (e.g. \"computer_guid=foo\"), and each value is a list of partition references (note: Zope partitions reference must be prefixed with \"zope-\").", "description": "Where to request instances. Each key is a query string for criterions (e.g. \"computer_guid=foo\"), and each value is a list of partition references (note: Zope partitions reference must be prefixed with \"zope-\").",
"additionalProperties": { "additionalProperties": {
"type": "array", "type": "array",
"items": { "type": "string" }, "items": {
"type": "string"
},
"uniqueItems": true "uniqueItems": true
}, },
"type": "object" "type": "object"
...@@ -104,7 +106,9 @@ ...@@ -104,7 +106,9 @@
}, },
"zope-partition-dict": { "zope-partition-dict": {
"description": "Zope layout definition", "description": "Zope layout definition",
"default": {"1": {}}, "default": {
"1": {}
},
"patternProperties": { "patternProperties": {
".*": { ".*": {
"additionalProperties": false, "additionalProperties": false,
...@@ -160,12 +164,15 @@ ...@@ -160,12 +164,15 @@
"type": "string" "type": "string"
}, },
"port-base": { "port-base": {
"allOf": [{ "allOf": [
{
"$ref": "#/definitions/tcpv4port" "$ref": "#/definitions/tcpv4port"
}, { },
{
"description": "Start allocating ports at this value. Useful if one needs to make several partitions share the same port range (ie, several partitions bound to a single address)", "description": "Start allocating ports at this value. Useful if one needs to make several partitions share the same port range (ie, several partitions bound to a single address)",
"default": 2200 "default": 2200
}] }
]
} }
}, },
"type": "object" "type": "object"
...@@ -215,11 +222,14 @@ ...@@ -215,11 +222,14 @@
"description": "Common settings ZEO servers", "description": "Common settings ZEO servers",
"properties": { "properties": {
"tcpv4-port": { "tcpv4-port": {
"allOf": [{ "allOf": [
{
"$ref": "#/definitions/tcpv4port" "$ref": "#/definitions/tcpv4port"
}, { },
{
"description": "Start allocating ports at this value, going upward" "description": "Start allocating ports at this value, going upward"
}] }
]
}, },
"backup-periodicity": { "backup-periodicity": {
"description": "When to backup, specified in the same format as for systemd.time(7) calendar events (years & seconds not supported, DoW & DoM can not be combined). Enter 'never' to disable backups.", "description": "When to backup, specified in the same format as for systemd.time(7) calendar events (years & seconds not supported, DoW & DoM can not be combined). Enter 'never' to disable backups.",
...@@ -237,7 +247,9 @@ ...@@ -237,7 +247,9 @@
"zodb": { "zodb": {
"description": "Zope Object DataBase mountpoints. See https://github.com/zopefoundation/ZODB/blob/3.10/src/ZODB/component.xml for extra options.", "description": "Zope Object DataBase mountpoints. See https://github.com/zopefoundation/ZODB/blob/3.10/src/ZODB/component.xml for extra options.",
"items": { "items": {
"required": ["type"], "required": [
"type"
],
"properties": { "properties": {
"name": { "name": {
"description": "Database name", "description": "Database name",
...@@ -251,14 +263,21 @@ ...@@ -251,14 +263,21 @@
}, },
"type": { "type": {
"description": "Storage type", "description": "Storage type",
"enum": ["zeo", "neo"], "enum": [
"zeo",
"neo"
],
"type": "string" "type": "string"
}, },
"server": { "server": {
"description": "Instantiate a server. If missing, 'storage-dict' must contain the necessary properties to mount the ZODB. For ZEO, the partition reference is 'zodb'. For NEO, they are 'neo-0', 'neo-1', ...", "description": "Instantiate a server. If missing, 'storage-dict' must contain the necessary properties to mount the ZODB. For ZEO, the partition reference is 'zodb'. For NEO, they are 'neo-0', 'neo-1', ...",
"anyOf": [ "anyOf": [
{"$ref": "./instance-zeo-schema.json"}, {
{"$ref": "../neoppod/instance-neo-input-schema.json"} "$ref": "./instance-zeo-schema.json"
},
{
"$ref": "../neoppod/instance-neo-input-schema.json"
}
] ]
}, },
"storage-dict": { "storage-dict": {
...@@ -270,11 +289,15 @@ ...@@ -270,11 +289,15 @@
"type": "boolean" "type": "boolean"
} }
}, },
"additionalProperties": {"type": "string"}, "additionalProperties": {
"type": "string"
},
"type": "object" "type": "object"
} }
}, },
"additionalProperties": {"type": "string"}, "additionalProperties": {
"type": "string"
},
"type": "object" "type": "object"
}, },
"type": "array" "type": "array"
......
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"required": ["tcpv4-port"], "required": [
"tcpv4-port"
],
"properties": { "properties": {
"tcpv4-port": { "tcpv4-port": {
"allOf": [{ "allOf": [
{
"$ref": "#/definitions/tcpv4port" "$ref": "#/definitions/tcpv4port"
}, { },
{
"description": "Start allocating ports at this value, going upward" "description": "Start allocating ports at this value, going upward"
}] }
]
}, },
"ram-storage-size": { "ram-storage-size": {
"description": "If 0 use disk storage, otherwise use ram and limit data size to this many megabytes", "description": "If 0 use disk storage, otherwise use ram and limit data size to this many megabytes",
......
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"required": ["tcpv4-port"], "required": [
"tcpv4-port"
],
"properties": { "properties": {
"tcpv4-port": { "tcpv4-port": {
"allOf": [{ "allOf": [
{
"$ref": "#/definitions/tcpv4port" "$ref": "#/definitions/tcpv4port"
}, { },
{
"description": "Start allocating ports at this value, going downward" "description": "Start allocating ports at this value, going downward"
}] }
]
}, },
"database-list": { "database-list": {
"description": "Databases to create and respective user credentials getting all privileges on it", "description": "Databases to create and respective user credentials getting all privileges on it",
"default": [{ "default": [
{
"name": "erp5", "name": "erp5",
"user": "user", "user": "user",
"password": "insecure" "password": "insecure"
}], }
],
"minItems": 1, "minItems": 1,
"items": { "items": {
"required": ["name", "user", "password"], "required": [
"name",
"user",
"password"
],
"properties": { "properties": {
"name": { "name": {
"description": "Database name", "description": "Database name",
...@@ -135,6 +146,5 @@ ...@@ -135,6 +146,5 @@
}, },
"type": "array" "type": "array"
} }
} }
} }
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"extends": "./schema-definitions.json#", "extends": "./schema-definitions.json#",
"required": ["tcpv4-port"], "required": [
"tcpv4-port"
],
"properties": { "properties": {
"tcpv4-port": { "tcpv4-port": {
"allOf": [{ "allOf": [
{
"$ref": "#/definitions/tcpv4port" "$ref": "#/definitions/tcpv4port"
}, { },
{
"description": "Start allocating ports at this value, going upward" "description": "Start allocating ports at this value, going upward"
}] }
]
}, },
"postmaster": { "postmaster": {
"description": "Mail address to send technical mails to. Non-empty value required for smptd relay service to be deployed. Values will be put in alias-dict as 'postmaster' key (alias-dict takes precedence)", "description": "Mail address to send technical mails to. Non-empty value required for smptd relay service to be deployed. Values will be put in alias-dict as 'postmaster' key (alias-dict takes precedence)",
...@@ -29,7 +34,9 @@ ...@@ -29,7 +34,9 @@
"relay": { "relay": {
"description": "Forward outgoing mails to a specific relay. If enabled, relay must support TLS-encrypted SASL authentication.", "description": "Forward outgoing mails to a specific relay. If enabled, relay must support TLS-encrypted SASL authentication.",
"dependencies": { "dependencies": {
"host": ["sasl-credential"] "host": [
"sasl-credential"
]
}, },
"properties": { "properties": {
"host": { "host": {
......
{ {
"type": "object", "type": "object",
"$schema": "http://json-schema.org/draft-04/schema", "$schema": "http://json-schema.org/draft-04/schema",
"title": "Input Parameters", "title": "Input Parameters",
"properties": { "properties": {
"test-node-title": { "test-node-title": {
......
{ {
"type": "object", "type": "object",
"$schema": "http://json-schema.org/draft-04/schema", "$schema": "http://json-schema.org/draft-04/schema",
"title": "Input Parameters", "title": "Input Parameters",
"properties": { "properties": {
"image-to-test-url": { "image-to-test-url": {
...@@ -23,7 +22,10 @@ ...@@ -23,7 +22,10 @@
"title": "Type of the test.", "title": "Type of the test.",
"type": "string", "type": "string",
"default": "script-from-url", "default": "script-from-url",
"enum" : ["script-from-url", "cloned-playbook"] "enum": [
"script-from-url",
"cloned-playbook"
]
}, },
"script-to-test-url": { "script-to-test-url": {
"title": "Optional URL of script to test, used for test-type=script-from-url.", "title": "Optional URL of script to test, used for test-type=script-from-url.",
...@@ -36,5 +38,9 @@ ...@@ -36,5 +38,9 @@
"type": "string" "type": "string"
} }
}, },
"required": ["image-to-test-url", "image-to-test-md5sum", "test-type"] "required": [
"image-to-test-url",
"image-to-test-md5sum",
"test-type"
]
} }
...@@ -110,7 +110,10 @@ ...@@ -110,7 +110,10 @@
"title": "Scheme of HTTP service into the VM (require: kvm-name).", "title": "Scheme of HTTP service into the VM (require: kvm-name).",
"description": "Say If HTTP service to run/or running into the Virtual Machine will use http or https. Possible values: http, https.", "description": "Say If HTTP service to run/or running into the Virtual Machine will use http or https. Possible values: http, https.",
"type": "string", "type": "string",
"enum": ["http", "https"], "enum": [
"http",
"https"
],
"default": "http" "default": "http"
} }
}, },
...@@ -126,7 +129,10 @@ ...@@ -126,7 +129,10 @@
"title": "Restrict all access to VM with firewall.", "title": "Restrict all access to VM with firewall.",
"description": "When Firewall is enabled, this parameter define if only vm of this cluster and authorized sources ip should have access to cluster.", "description": "When Firewall is enabled, this parameter define if only vm of this cluster and authorized sources ip should have access to cluster.",
"type": "string", "type": "string",
"enum": ["on", "off"], "enum": [
"on",
"off"
],
"default": "off" "default": "off"
}, },
"fw-authorized-sources": { "fw-authorized-sources": {
...@@ -187,7 +193,10 @@ ...@@ -187,7 +193,10 @@
"description": "Define if SlapOS should start or stop this VM.", "description": "Define if SlapOS should start or stop this VM.",
"type": "string", "type": "string",
"default": "started", "default": "started",
"enum": ["started", "stopped"] "enum": [
"started",
"stopped"
]
}, },
"enable-device-hotplug": { "enable-device-hotplug": {
"title": "Enable device hotplug mode", "title": "Enable device hotplug mode",
...@@ -237,7 +246,14 @@ ...@@ -237,7 +246,14 @@
"description": "Type of QEMU disk drive, to create.", "description": "Type of QEMU disk drive, to create.",
"type": "string", "type": "string",
"default": "qcow2", "default": "qcow2",
"enum": ["qcow2", "raw", "vdi", "vmdk", "cloop", "qed"] "enum": [
"qcow2",
"raw",
"vdi",
"vmdk",
"cloop",
"qed"
]
}, },
"disk-type": { "disk-type": {
"title": "Disk type", "title": "Disk type",
...@@ -259,14 +275,23 @@ ...@@ -259,14 +275,23 @@
"description": "Disk cache controls how the host cache is used to access block data.", "description": "Disk cache controls how the host cache is used to access block data.",
"type": "string", "type": "string",
"default": "writeback", "default": "writeback",
"enum": ["none", "writeback", "unsafe", "directsync", "writethrough"] "enum": [
"none",
"writeback",
"unsafe",
"directsync",
"writethrough"
]
}, },
"disk-aio": { "disk-aio": {
"title": "Disk aio to use.", "title": "Disk aio to use.",
"description": "Selects between pthread based disk I/O and native Linux AIO.", "description": "Selects between pthread based disk I/O and native Linux AIO.",
"type": "string", "type": "string",
"default": "threads", "default": "threads",
"enum": ["threads", "native"] "enum": [
"threads",
"native"
]
}, },
"cpu-count": { "cpu-count": {
"title": "CPU count", "title": "CPU count",
...@@ -302,7 +327,41 @@ ...@@ -302,7 +327,41 @@
"title": "Use keyboard layout language", "title": "Use keyboard layout language",
"description": "Use keyboard layout language (for example fr for French). Can be usefull with VNC display", "description": "Use keyboard layout language (for example fr for French). Can be usefull with VNC display",
"type": "string", "type": "string",
"enum": ["ar", "da", "de", "de-ch", "en-gb", "en-us", "es", "et", "fi", "fo", "fr", "fr-be", "fr-ca", "fr-ch", "hr", "hu", "is", "it", "ja", "lt", "lv", "mk", "nl", "nl-be", "no", "pl", "pt", "pt-br", "ru", "sl", "sv", "th", "tr"], "enum": [
"ar",
"da",
"de",
"de-ch",
"en-gb",
"en-us",
"es",
"et",
"fi",
"fo",
"fr",
"fr-be",
"fr-ca",
"fr-ch",
"hr",
"hu",
"is",
"it",
"ja",
"lt",
"lv",
"mk",
"nl",
"nl-be",
"no",
"pl",
"pt",
"pt-br",
"ru",
"sl",
"sv",
"th",
"tr"
],
"default": "fr" "default": "fr"
}, },
"nbd-host": { "nbd-host": {
...@@ -366,7 +425,14 @@ ...@@ -366,7 +425,14 @@
"description": "Type of QEMU disk drive, to create.", "description": "Type of QEMU disk drive, to create.",
"type": "string", "type": "string",
"default": "qcow2", "default": "qcow2",
"enum": ["qcow2", "raw", "vdi", "vmdk", "cloop", "qed"] "enum": [
"qcow2",
"raw",
"vdi",
"vmdk",
"cloop",
"qed"
]
}, },
"wipe-disk-ondestroy": { "wipe-disk-ondestroy": {
"title": "Wipe disks when destroy the VM", "title": "Wipe disks when destroy the VM",
......
{ {
"type": "object", "type": "object",
"$schema": "http://json-schema.org/draft-04/schema", "$schema": "http://json-schema.org/draft-04/schema",
"title": "Input Parameters", "title": "Input Parameters",
"properties": { "properties": {
"enable-device-hotplug": { "enable-device-hotplug": {
...@@ -53,31 +52,53 @@ ...@@ -53,31 +52,53 @@
"description": "Type of QEMU disk drive.", "description": "Type of QEMU disk drive.",
"type": "string", "type": "string",
"default": "virtio", "default": "virtio",
"enum": ["ide", "scsi", "sd", "mtd", "floppy", "pflash", "virtio"] "enum": [
"ide",
"scsi",
"sd",
"mtd",
"floppy",
"pflash",
"virtio"
]
}, },
"disk-format": { "disk-format": {
"title": "Type of disk drive to create by QEMU.", "title": "Type of disk drive to create by QEMU.",
"description": "Type of QEMU disk drive, to create.", "description": "Type of QEMU disk drive, to create.",
"type": "string", "type": "string",
"default": "qcow2", "default": "qcow2",
"enum": ["qcow2", "raw", "vdi", "vmdk", "cloop", "qed"] "enum": [
"qcow2",
"raw",
"vdi",
"vmdk",
"cloop",
"qed"
]
}, },
"disk-cache": { "disk-cache": {
"title": "Cache option to use with Disk.", "title": "Cache option to use with Disk.",
"description": "Disk cache controls how the host cache is used to access block data.", "description": "Disk cache controls how the host cache is used to access block data.",
"type": "string", "type": "string",
"default": "writeback", "default": "writeback",
"enum": ["none", "writeback", "unsafe", "directsync", "writethrough"] "enum": [
"none",
"writeback",
"unsafe",
"directsync",
"writethrough"
]
}, },
"disk-aio": { "disk-aio": {
"title": "Disk aio to use.", "title": "Disk aio to use.",
"description": "Selects between pthread based disk I/O and native Linux AIO.", "description": "Selects between pthread based disk I/O and native Linux AIO.",
"type": "string", "type": "string",
"default": "threads", "default": "threads",
"enum": ["threads", "native"] "enum": [
"threads",
"native"
]
}, },
"cpu-count": { "cpu-count": {
"title": "CPU count", "title": "CPU count",
"description": "Number of CPU cores.", "description": "Number of CPU cores.",
...@@ -107,19 +128,55 @@ ...@@ -107,19 +128,55 @@
"description": "Select the emulated CPU model. Ex: SandyBridge,+erms,+smep,+smx,+vmx", "description": "Select the emulated CPU model. Ex: SandyBridge,+erms,+smep,+smx,+vmx",
"type": "string" "type": "string"
}, },
"keyboard-layout-language": { "keyboard-layout-language": {
"title": "Use keyboard layout language", "title": "Use keyboard layout language",
"description": "Use keyboard layout language (for example fr for French). Can be usefull with VNC display", "description": "Use keyboard layout language (for example fr for French). Can be usefull with VNC display",
"type": "string", "type": "string",
"enum": ["ar", "da", "de", "de-ch", "en-gb", "en-us", "es", "et", "fi", "fo", "fr", "fr-be", "fr-ca", "fr-ch", "hr", "hu", "is", "it", "ja", "lt", "lv", "mk", "nl", "nl-be", "no", "pl", "pt", "pt-br", "ru", "sl", "sv", "th", "tr"] "enum": [
"ar",
"da",
"de",
"de-ch",
"en-gb",
"en-us",
"es",
"et",
"fi",
"fo",
"fr",
"fr-be",
"fr-ca",
"fr-ch",
"hr",
"hu",
"is",
"it",
"ja",
"lt",
"lv",
"mk",
"nl",
"nl-be",
"no",
"pl",
"pt",
"pt-br",
"ru",
"sl",
"sv",
"th",
"tr"
]
}, },
"nbd-host": { "nbd-host": {
"title": "NBD hostname", "title": "NBD hostname",
"description": "hostname (or IP) of the NBD server containing the boot image.", "description": "hostname (or IP) of the NBD server containing the boot image.",
"type": "string", "type": "string",
"format": ["host-name", "ip-address", "ipv6"], "format": [
"host-name",
"ip-address",
"ipv6"
],
"default": "debian.nbd.vifib.net" "default": "debian.nbd.vifib.net"
}, },
"nbd-port": { "nbd-port": {
...@@ -130,12 +187,15 @@ ...@@ -130,12 +187,15 @@
"minimum": 1, "minimum": 1,
"maximum": 65535 "maximum": 65535
}, },
"nbd2-host": { "nbd2-host": {
"title": "Second NBD hostname", "title": "Second NBD hostname",
"description": "hostname (or IP) of the second NBD server (containing drivers for example).", "description": "hostname (or IP) of the second NBD server (containing drivers for example).",
"type": "string", "type": "string",
"format": ["host-name", "ip-address", "ipv6"] "format": [
"host-name",
"ip-address",
"ipv6"
]
}, },
"nbd2-port": { "nbd2-port": {
"title": "Second NBD port", "title": "Second NBD port",
...@@ -144,7 +204,6 @@ ...@@ -144,7 +204,6 @@
"minimum": 1, "minimum": 1,
"maximum": 65535 "maximum": 65535
}, },
"virtual-hard-drive-url": { "virtual-hard-drive-url": {
"title": "Existing disk image URL", "title": "Existing disk image URL",
"description": "If specified, will download an existing disk image (qcow2, raw, ...), and will use it as main virtual hard drive. Can be used to download and use an already installed and customized virtual hard drive.", "description": "If specified, will download an existing disk image (qcow2, raw, ...), and will use it as main virtual hard drive. Can be used to download and use an already installed and customized virtual hard drive.",
...@@ -168,7 +227,6 @@ ...@@ -168,7 +227,6 @@
"type": "boolean", "type": "boolean",
"default": true "default": true
}, },
"external-disk-number": { "external-disk-number": {
"title": "Number of additional disk to create for virtual machine", "title": "Number of additional disk to create for virtual machine",
"description": "Specify the number of additional disk to create for virtual machine in data folder of SlapOS Node. Requires instance_storage_home to be configured on SlapOS Node.", "description": "Specify the number of additional disk to create for virtual machine in data folder of SlapOS Node. Requires instance_storage_home to be configured on SlapOS Node.",
...@@ -189,9 +247,15 @@ ...@@ -189,9 +247,15 @@
"description": "Type of QEMU disk drive, to create.", "description": "Type of QEMU disk drive, to create.",
"type": "string", "type": "string",
"default": "qcow2", "default": "qcow2",
"enum": ["qcow2", "raw", "vdi", "vmdk", "cloop", "qed"] "enum": [
"qcow2",
"raw",
"vdi",
"vmdk",
"cloop",
"qed"
]
}, },
"wipe-disk-ondestroy": { "wipe-disk-ondestroy": {
"title": "Wipe disks when destroy the VM", "title": "Wipe disks when destroy the VM",
"description": "Say if disks should be wiped by writing new data over every single bit before delete them. This option is used to securely delete VM disks", "description": "Say if disks should be wiped by writing new data over every single bit before delete them. This option is used to securely delete VM disks",
...@@ -206,7 +270,6 @@ ...@@ -206,7 +270,6 @@
"minimum": 1, "minimum": 1,
"maximum": 5 "maximum": 5
}, },
"use-tap": { "use-tap": {
"title": "Use QEMU TAP network interface", "title": "Use QEMU TAP network interface",
"description": "Use QEMU TAP network interface, might require a bridge on SlapOS Node.", "description": "Use QEMU TAP network interface, might require a bridge on SlapOS Node.",
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
"format": "uri", "format": "uri",
"require": true "require": true
}, },
"url": { "url": {
"title": "URL", "title": "URL",
"description": "URL used to connect to the service.", "description": "URL used to connect to the service.",
......
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"description": "Parameters to instantiate a NEO cluster. See https://lab.nexedi.com/nexedi/neoppod/blob/master/neo.conf for more information.", "description": "Parameters to instantiate a NEO cluster. See https://lab.nexedi.com/nexedi/neoppod/blob/master/neo.conf for more information.",
"additionalProperties": false, "additionalProperties": false,
"require": ["cluster"], "require": [
"cluster"
],
"properties": { "properties": {
"cluster": { "cluster": {
"description": "Cluster unique identifier. Your last line of defense against mixing up NEO clusters and corrupting your data. Choose a unique value for each of your cluster.", "description": "Cluster unique identifier. Your last line of defense against mixing up NEO clusters and corrupting your data. Choose a unique value for each of your cluster.",
...@@ -30,7 +32,9 @@ ...@@ -30,7 +32,9 @@
"description": "[NEO SR only] Where to request instances. Each key is a query string for criterions (e.g. \"computer_guid=foo\"), and each value is a list of partition references ('node-0', 'node-1', ...). The prefix 'node-' is mandatory and the number must start from 0. The total number of nodes here must be equal to the length of node-list.", "description": "[NEO SR only] Where to request instances. Each key is a query string for criterions (e.g. \"computer_guid=foo\"), and each value is a list of partition references ('node-0', 'node-1', ...). The prefix 'node-' is mandatory and the number must start from 0. The total number of nodes here must be equal to the length of node-list.",
"additionalProperties": { "additionalProperties": {
"type": "array", "type": "array",
"items": { "type": "string" }, "items": {
"type": "string"
},
"uniqueItems": true "uniqueItems": true
}, },
"type": "object" "type": "object"
......
{ {
"type": "object", "type": "object",
"$schema": "http://json-schema.org/draft-04/schema", "$schema": "http://json-schema.org/draft-04/schema",
"title": "Input Parameters", "title": "Input Parameters",
"properties": { "properties": {
"-dns-type": { "-dns-type": {
"title": "DNS Software type", "title": "DNS Software type",
"description": "Software type of DNS nodes", "description": "Software type of DNS nodes",
"default": "single-default", "default": "single-default",
"type": "string" "type": "string"
}, },
"-dns-software-release-url": { "-dns-software-release-url": {
"title": "DNS Software Release", "title": "DNS Software Release",
"description": "Url of the software release to be used for the nodes", "description": "Url of the software release to be used for the nodes",
"default": "", "default": "",
"type": "string" "type": "string"
}, },
"-dns-quantity": { "-dns-quantity": {
"title": "DNS Quantity", "title": "DNS Quantity",
"description": "DNS Nodes Quantity", "description": "DNS Nodes Quantity",
"default": 1, "default": 1,
"type": "integer" "type": "integer"
}, },
"-dns-i-state": { "-dns-i-state": {
"title": "Requested state of node i", "title": "Requested state of node i",
"description": "Requested State of node i of the replication. i must inferior or equal to '-dns-quantity'", "description": "Requested State of node i of the replication. i must inferior or equal to '-dns-quantity'",
"default": "started", "default": "started",
"type": "string" "type": "string"
}, },
"-sla-i-sla_parameter": { "-sla-i-sla_parameter": {
"title": "sla_parameter used to request node i", "title": "sla_parameter used to request node i",
"description": "Parameter used to provide sla parameter to request dns nodes", "description": "Parameter used to provide sla parameter to request dns nodes",
"default": "", "default": "",
"type": "string" "type": "string"
}, },
"zone": { "zone": {
"title": "Zone", "title": "Zone",
"description": "Zone to be handled by the DNS cluster", "description": "Zone to be handled by the DNS cluster",
...@@ -47,21 +40,18 @@ ...@@ -47,21 +40,18 @@
"default": "domain.com", "default": "domain.com",
"pattern": "^([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}$" "pattern": "^([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}$"
}, },
"server-admin": { "server-admin": {
"title": "Zone Administrator Email", "title": "Zone Administrator Email",
"description": "Email of the zone administrator, it is used to generate SOA value", "description": "Email of the zone administrator, it is used to generate SOA value",
"type": "string", "type": "string",
"default": "admin@domain.com" "default": "admin@domain.com"
}, },
"dns-name-template-string": { "dns-name-template-string": {
"title": "DNS domains template string", "title": "DNS domains template string",
"description": "Template used to generate DNS domain name", "description": "Template used to generate DNS domain name",
"type": "string", "type": "string",
"default": "ns%s. + zone" "default": "ns%s. + zone"
}, },
"monitor-interface-url": { "monitor-interface-url": {
"title": "Monitor Web Interface URL", "title": "Monitor Web Interface URL",
"description": "Give Url of HTML web interface that will be used to render this monitor instance.", "description": "Give Url of HTML web interface that will be used to render this monitor instance.",
......
{ {
"type": "object", "type": "object",
"$schema": "http://json-schema.org/draft-04/schema", "$schema": "http://json-schema.org/draft-04/schema",
"title": "Input Parameters", "title": "Input Parameters",
"properties": { "properties": {
"record": { "record": {
"title": "Record", "title": "Record",
"description": "Record for the configuration", "description": "Record for the configuration",
"type": "string" "type": "string"
}, },
"origin": { "origin": {
"title": "Origin", "title": "Origin",
"description": "Used to qualify RR in the configuration. i.e.: if your origin is a.example.com and the RR for Europe is 'eu' the european clients will use eu.a.exmple.com", "description": "Used to qualify RR in the configuration. i.e.: if your origin is a.example.com and the RR for Europe is 'eu' the european clients will use eu.a.exmple.com",
"type": "string" "type": "string"
}, },
"default": { "default": {
"title": "Default RR", "title": "Default RR",
"description": "Defautl record to use when the ip is not regognized", "description": "Defautl record to use when the ip is not regognized",
"type": "string" "type": "string"
}, },
"europe": { "europe": {
"title": "Europe RR", "title": "Europe RR",
"description": "Records to use for Europe", "description": "Records to use for Europe",
"default": "eu", "default": "eu",
"type": "string" "type": "string"
}, },
"africa": { "africa": {
"title": "Africa RR", "title": "Africa RR",
"description": "Records to use for Africa", "description": "Records to use for Africa",
"default": "af", "default": "af",
"type": "string" "type": "string"
}, },
"south-america": { "south-america": {
"title": "South America RR", "title": "South America RR",
"description": "Records to use for South America", "description": "Records to use for South America",
"default": "sa", "default": "sa",
"type": "string" "type": "string"
}, },
"north-america": { "north-america": {
"title": "North America RR", "title": "North America RR",
"description": "Records to use for North America", "description": "Records to use for North America",
"default": "na", "default": "na",
"type": "string" "type": "string"
}, },
"china": { "china": {
"title": "China RR", "title": "China RR",
"description": "Records to use for China", "description": "Records to use for China",
"default": "cn", "default": "cn",
"type": "string" "type": "string"
}, },
"japan": { "japan": {
"title": "Japan RR", "title": "Japan RR",
"description": "Records to use for Japan", "description": "Records to use for Japan",
"default": "jp", "default": "jp",
"type": "string" "type": "string"
}, },
"hong-kong": { "hong-kong": {
"title": "Honk Kong RR", "title": "Honk Kong RR",
"description": "Records to use for Hong Kong", "description": "Records to use for Hong Kong",
"default": "hk", "default": "hk",
"type": "string" "type": "string"
}, },
"east-asia": { "east-asia": {
"title": "East Asia RR", "title": "East Asia RR",
"description": "Records to use for East Asia", "description": "Records to use for East Asia",
"default": "as", "default": "as",
"type": "string" "type": "string"
}, },
"west-asia": { "west-asia": {
"title": "West Asia RR", "title": "West Asia RR",
"description": "Records to use for West Asia", "description": "Records to use for West Asia",
"default": "eu", "default": "eu",
"type": "string" "type": "string"
}, },
"oceania": { "oceania": {
"title": "Oceania RR", "title": "Oceania RR",
"description": "Records to use for Oceania", "description": "Records to use for Oceania",
......
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"properties": { "properties": {}
}
} }
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
"type": "boolean" "type": "boolean"
}, },
"slapos-software-type": { "slapos-software-type": {
"title": "Deployed Instance Software Type" , "title": "Deployed Instance Software Type",
"description": "Software type of your instance inside the runner", "description": "Software type of your instance inside the runner",
"type": "string" "type": "string"
}, },
...@@ -55,12 +55,15 @@ ...@@ -55,12 +55,15 @@
"title": "CPU Usage Ratio", "title": "CPU Usage Ratio",
"description": "Ratio of the CPU use for compilation, if value is set to n, compilation will use number-of-cpu/n of cpus (need instance restart)", "description": "Ratio of the CPU use for compilation, if value is set to n, compilation will use number-of-cpu/n of cpus (need instance restart)",
"type": "integer", "type": "integer",
"default" : 4 "default": 4
}, },
"no-ipv4-frontend": { "no-ipv4-frontend": {
"title": "No IPv4 frontend", "title": "No IPv4 frontend",
"description": "Prevent the slaprunner to order an IPv4 frontend for itself", "description": "Prevent the slaprunner to order an IPv4 frontend for itself",
"enum": ["true", "false"], "enum": [
"true",
"false"
],
"default": "false" "default": "false"
}, },
"custom-frontend-backend-url": { "custom-frontend-backend-url": {
...@@ -73,7 +76,9 @@ ...@@ -73,7 +76,9 @@
"title": "Custom Frontend Backend Type", "title": "Custom Frontend Backend Type",
"description": "The type of the frontend slave instance to ask", "description": "The type of the frontend slave instance to ask",
"type": "string", "type": "string",
"enum": ["zope"] "enum": [
"zope"
]
}, },
"custom-frontend-basic-auth": { "custom-frontend-basic-auth": {
"title": "Custom Frontend Basic Auth", "title": "Custom Frontend Basic Auth",
...@@ -89,7 +94,10 @@ ...@@ -89,7 +94,10 @@
"title": "Custom Frontend Software Type", "title": "Custom Frontend Software Type",
"description": "SoftwareType of the frontend you request (default is RootSoftwareInstance)", "description": "SoftwareType of the frontend you request (default is RootSoftwareInstance)",
"type": "string", "type": "string",
"enum": ["RootSoftwareInstance", "default"] "enum": [
"RootSoftwareInstance",
"default"
]
}, },
"custom-frontend-software-url": { "custom-frontend-software-url": {
"title": "Custom Frontend Software URL", "title": "Custom Frontend Software URL",
...@@ -101,7 +109,10 @@ ...@@ -101,7 +109,10 @@
"title": "Check Custom Frontend Promise", "title": "Check Custom Frontend Promise",
"description": "Enable a promise to check that HTTP frontend created from custom-frontend-backend-url is available", "description": "Enable a promise to check that HTTP frontend created from custom-frontend-backend-url is available",
"type": "string", "type": "string",
"enum": ["true", "false"], "enum": [
"true",
"false"
],
"default": "false" "default": "false"
}, },
"monitor-port": { "monitor-port": {
......
...@@ -3,12 +3,15 @@ ...@@ -3,12 +3,15 @@
"extends": "./schema-definitions.json#", "extends": "./schema-definitions.json#",
"properties": { "properties": {
"tcpv4-port": { "tcpv4-port": {
"allOf": [{ "allOf": [
{
"$ref": "#/definitions/tcpv4port" "$ref": "#/definitions/tcpv4port"
}, { },
{
"description": "Start allocating ports at this value, going upward", "description": "Start allocating ports at this value, going upward",
"default": 6001 "default": 6001
}] }
]
}, },
"backend-url": { "backend-url": {
"description": "The backend url that varnish will cache", "description": "The backend url that varnish will cache",
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
"title": "Resiliency Parameters", "title": "Resiliency Parameters",
"description": "List of possible parameters used in the resilient stack", "description": "List of possible parameters used in the resilient stack",
"type": "object", "type": "object",
"properties": { "properties": {
"-sla-0-computer_guid": { "-sla-0-computer_guid": {
"title": "Target computer for main instance", "title": "Target computer for main instance",
......
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