Commit 1320b5bb authored by Jérome Perrin's avatar Jérome Perrin

software/erp5: format json

with python json.tool
parent 82cf1471
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"description": "Values returned by ERP5 instantiation",
"additionalProperties": false, "additionalProperties": false,
"description": "Values returned by ERP5 instantiation",
"patternProperties": {
"family-.*": {
"description": "Zope family access information",
"pattern": "^https://",
"type": "string"
}
},
"properties": { "properties": {
"caucase-http-url": {
"description": "Caucase url on HTTP. For HTTPS URL, uses https scheme, if port is explicitely specified in http URL, take that port and add 1 and use it as https port. If it is not specified.",
"pattern": "^http://",
"type": "string"
},
"deadlock-debugger-password": {
"description": "Deadlock debugger password",
"type": "string"
},
"hosts-dict": { "hosts-dict": {
"description": "Hosts mapping, including auto-generated entries", "description": "Hosts mapping, including auto-generated entries",
"patternProperties": { "patternProperties": {
...@@ -13,10 +29,6 @@ ...@@ -13,10 +29,6 @@
}, },
"type": "object" "type": "object"
}, },
"site-id": {
"description": "Chosen ERP5Site object identifier",
"type": "string"
},
"inituser-login": { "inituser-login": {
"description": "Initial user login", "description": "Initial user login",
"type": "string" "type": "string"
...@@ -25,18 +37,9 @@ ...@@ -25,18 +37,9 @@
"description": "Initial user password", "description": "Initial user password",
"type": "string" "type": "string"
}, },
"deadlock-debugger-password": { "jupyter-url": {
"description": "Deadlock debugger password", "description": "Jupyter notebook web UI access information",
"type": "string" "pattern": "^https://",
},
"memcached-persistent-url": {
"description": "Persistent memcached access information",
"pattern": "^memcached://",
"type": "string"
},
"memcached-volatile-url": {
"description": "Volatile memcached access information",
"pattern": "^memcached://",
"type": "string" "type": "string"
}, },
"mariadb-database-list": { "mariadb-database-list": {
...@@ -45,39 +48,36 @@ ...@@ -45,39 +48,36 @@
"pattern": "^mysql://", "pattern": "^mysql://",
"type": "string" "type": "string"
}, },
"uniqueItems": true, "type": "array",
"type": "array" "uniqueItems": true
}, },
"mariadb-test-database-list": { "mariadb-test-database-list": {
"description": "Relational database access information", "description": "Relational database access information",
"items": { "items": {
"pattern": "^mysql://", "pattern": "^mysql://",
"type": "string" "type": "string"
}, },
"uniqueItems": true, "type": "array",
"type": "array" "uniqueItems": true
}, },
"neo-masters": { "memcached-persistent-url": {
"$ref": "../neoppod/instance-neo-output-schema.json#/properties/masters" "description": "Persistent memcached access information",
"pattern": "^memcached://",
"type": "string"
},
"memcached-volatile-url": {
"description": "Volatile memcached access information",
"pattern": "^memcached://",
"type": "string"
}, },
"neo-admins": { "neo-admins": {
"$ref": "../neoppod/instance-neo-output-schema.json#/properties/admins" "$ref": "../neoppod/instance-neo-output-schema.json#/properties/admins"
}, },
"jupyter-url": { "neo-masters": {
"description": "Jupyter notebook web UI access information", "$ref": "../neoppod/instance-neo-output-schema.json#/properties/masters"
"pattern": "^https://",
"type": "string"
}, },
"caucase-http-url": { "site-id": {
"description": "Caucase url on HTTP. For HTTPS URL, uses https scheme, if port is explicitely specified in http URL, take that port and add 1 and use it as https port. If it is not specified.", "description": "Chosen ERP5Site object identifier",
"pattern": "^http://",
"type": "string"
}
},
"patternProperties": {
"family-.*": {
"description": "Zope family access information",
"pattern": "^https://",
"type": "string" "type": "string"
} }
}, },
......
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"required": ["tcpv4-port"],
"properties": { "properties": {
"tcpv4-port": {
"allOf": [{
"$ref": "#/definitions/tcpv4port"
}, {
"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",
"default": 0, "default": 0,
"description": "If 0 use disk storage, otherwise use ram and limit data size to this many megabytes",
"type": "integer" "type": "integer"
},
"tcpv4-port": {
"allOf": [
{
"$ref": "#/definitions/tcpv4port"
},
{
"description": "Start allocating ports at this value, going upward"
}
]
} }
} },
"required": [
"tcpv4-port"
]
} }
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"required": ["tcpv4-port"],
"properties": { "properties": {
"tcpv4-port": { "backup-periodicity": {
"allOf": [{ "default": "daily",
"$ref": "#/definitions/tcpv4port" "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).",
}, { "type": "string"
"description": "Start allocating ports at this value, going downward" },
}] "catalog-backup": {
"description": "Backup control knobs",
"properties": {
"full-retention-days": {
"default": 7,
"description": "How many days full backups must be retained, -1 meaning full backups are disabled and 0 meaning no expiration",
"minimum": -1,
"type": "integer"
},
"incremental-retention-days": {
"description": "How many days incremental backups (binlogs) must be retained, -1 meaning incremental backups are disabled and 0 meaning no expiration, defaulting to full-retention-days' value",
"minimum": -1,
"type": "integer"
}
},
"type": "object"
}, },
"database-list": { "database-list": {
"default": [
{
"name": "erp5",
"password": "insecure",
"user": "user"
}
],
"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": [{
"name": "erp5",
"user": "user",
"password": "insecure"
}],
"minItems": 1,
"items": { "items": {
"required": ["name", "user", "password"],
"properties": { "properties": {
"name": { "name": {
"description": "Database name", "description": "Database name",
"type": "string" "type": "string"
}, },
"user": {
"description": "User name",
"type": "string"
},
"password": { "password": {
"description": "User password", "description": "User password",
"type": "string" "type": "string"
},
"user": {
"description": "User name",
"type": "string"
} }
}, },
"required": [
"name",
"user",
"password"
],
"type": "object" "type": "object"
}, },
"minItems": 1,
"type": "array" "type": "array"
}, },
"test-database-amount": { "environment-variables": {
"description": "The number of test databases to create, adding auto-generated entries to database-list. The same number of testrunners will be created in Zope partitions. Setting this to 0 disable the creation of test runners.", "description": "Extra environment variables for mysqld may be required to use third party ODBC libraries for CONNECT storage engine.",
"default": 1, "items": {
"minimum": 0, "type": "string"
"type": "integer"
},
"catalog-backup": {
"description": "Backup control knobs",
"properties": {
"full-retention-days": {
"description": "How many days full backups must be retained, -1 meaning full backups are disabled and 0 meaning no expiration",
"default": 7,
"minimum": -1,
"type": "integer"
},
"incremental-retention-days": {
"description": "How many days incremental backups (binlogs) must be retained, -1 meaning incremental backups are disabled and 0 meaning no expiration, defaulting to full-retention-days' value",
"minimum": -1,
"type": "integer"
}
}, },
"type": "object" "type": "array"
},
"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).",
"default": "daily",
"type": "string"
},
"innodb-buffer-pool-size": {
"description": "See MariaDB documentation on innodb_buffer_pool_size",
"minimum": 0,
"type": "integer"
}, },
"innodb-buffer-pool-instances": { "innodb-buffer-pool-instances": {
"description": "See MariaDB documentation on innodb_buffer_pool_instances", "description": "See MariaDB documentation on innodb_buffer_pool_instances",
"minimum": 1, "minimum": 1,
"type": "integer" "type": "integer"
}, },
"innodb-log-file-size": { "innodb-buffer-pool-size": {
"description": "See MariaDB documentation on innodb_log_file_size", "description": "See MariaDB documentation on innodb_buffer_pool_size",
"minimum": 0, "minimum": 0,
"type": "integer" "type": "integer"
}, },
...@@ -85,56 +79,72 @@ ...@@ -85,56 +79,72 @@
"minimum": 0, "minimum": 0,
"type": "integer" "type": "integer"
}, },
"innodb-log-file-size": {
"description": "See MariaDB documentation on innodb_log_file_size",
"minimum": 0,
"type": "integer"
},
"long-query-time": { "long-query-time": {
"default": 1,
"description": "Number of seconds above which long queries are logged", "description": "Number of seconds above which long queries are logged",
"minimum": 0, "minimum": 0,
"default": 1,
"type": "number" "type": "number"
}, },
"odbc-ini": {
"default": "",
"description": "Contents of odbc.ini file, see unixodbc document",
"type": "string"
},
"relaxed-writes": { "relaxed-writes": {
"description": "When enabled, sets innodb_flush_log_at_trx_commit = 0, innodb_flush_method = nosync, innodb_doublewrite = 0 and sync_frm = 0 - RTFM, those options are dangerous",
"default": false, "default": false,
"description": "When enabled, sets innodb_flush_log_at_trx_commit = 0, innodb_flush_method = nosync, innodb_doublewrite = 0 and sync_frm = 0 - RTFM, those options are dangerous",
"type": "boolean" "type": "boolean"
}, },
"ssl": { "ssl": {
"description": "Enable and define SSL support for network connections",
"default": {}, "default": {},
"description": "Enable and define SSL support for network connections",
"properties": { "properties": {
"ca-crt": { "ca-crt": {
"description": "Certificate Authority's certificate, in PEM format", "description": "Certificate Authority's certificate, in PEM format",
"type": "string" "type": "string"
}, },
"crt": { "cipher": {
"description": "Server's certificate, in PEM format (mandatory to enable SSL support)", "description": "Permissible cipher specifications, separated by colons",
"type": "string"
},
"key": {
"description": "Server's key, in PEM format (mandatory to enable SSL support)",
"type": "string" "type": "string"
}, },
"crl": { "crl": {
"description": "Server's certificate revocation list, in PEM format", "description": "Server's certificate revocation list, in PEM format",
"type": "string" "type": "string"
}, },
"cipher": { "crt": {
"description": "Permissible cipher specifications, separated by colons", "description": "Server's certificate, in PEM format (mandatory to enable SSL support)",
"type": "string"
},
"key": {
"description": "Server's key, in PEM format (mandatory to enable SSL support)",
"type": "string" "type": "string"
} }
}, },
"type": "object" "type": "object"
}, },
"odbc-ini": { "tcpv4-port": {
"description": "Contents of odbc.ini file, see unixodbc document", "allOf": [
"default": "", {
"type": "string" "$ref": "#/definitions/tcpv4port"
},
{
"description": "Start allocating ports at this value, going downward"
}
]
}, },
"environment-variables": { "test-database-amount": {
"description": "Extra environment variables for mysqld may be required to use third party ODBC libraries for CONNECT storage engine.", "default": 1,
"items": { "description": "The number of test databases to create, adding auto-generated entries to database-list. The same number of testrunners will be created in Zope partitions. Setting this to 0 disable the creation of test runners.",
"type": "string" "minimum": 0,
}, "type": "integer"
"type": "array"
} }
},
} "required": [
"tcpv4-port"
]
} }
{ {
"$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"],
"properties": { "properties": {
"tcpv4-port": {
"allOf": [{
"$ref": "#/definitions/tcpv4port"
}, {
"description": "Start allocating ports at this value, going upward"
}]
},
"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)",
"default": "",
"type": "string"
},
"alias-dict": { "alias-dict": {
"description": "Mail alias support",
"default": {}, "default": {},
"description": "Mail alias support",
"patternProperties": { "patternProperties": {
".*": { ".*": {
"description": "List of addresses alias expands to", "description": "List of addresses alias expands to",
...@@ -26,11 +13,27 @@ ...@@ -26,11 +13,27 @@
}, },
"type": "object" "type": "object"
}, },
"divert": {
"description": "Intercept all mails and send them to given addresses instead of original recipient",
"items": {
"type": "string"
},
"type": "array",
"uniqueItems": true
},
"postmaster": {
"default": "",
"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)",
"type": "string"
},
"relay": { "relay": {
"description": "Forward outgoing mails to a specific relay. If enabled, relay must support TLS-encrypted SASL authentication.", "default": {},
"dependencies": { "dependencies": {
"host": ["sasl-credential"] "host": [
"sasl-credential"
]
}, },
"description": "Forward outgoing mails to a specific relay. If enabled, relay must support TLS-encrypted SASL authentication.",
"properties": { "properties": {
"host": { "host": {
"description": "Host name or address of relay, with optional port (ex: '[example.com]:submission'). Enclosing hostname with [] prevents MX lookup.", "description": "Host name or address of relay, with optional port (ex: '[example.com]:submission'). Enclosing hostname with [] prevents MX lookup.",
...@@ -41,16 +44,20 @@ ...@@ -41,16 +44,20 @@
"type": "string" "type": "string"
} }
}, },
"default": {},
"type": "object" "type": "object"
}, },
"divert": { "tcpv4-port": {
"description": "Intercept all mails and send them to given addresses instead of original recipient", "allOf": [
"type": "array", {
"items": { "$ref": "#/definitions/tcpv4port"
"type": "string" },
}, {
"uniqueItems": true "description": "Start allocating ports at this value, going upward"
}
]
} }
} },
"required": [
"tcpv4-port"
]
} }
...@@ -3,19 +3,19 @@ ...@@ -3,19 +3,19 @@
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"backup": { "backup": {
"description": "'%(backup)s' is expanded to partition's ZODB backup path (typically 'srv/backup/zodb'), and %(name)s with the export id",
"default": "%(backup)s/%(name)s", "default": "%(backup)s/%(name)s",
"description": "'%(backup)s' is expanded to partition's ZODB backup path (typically 'srv/backup/zodb'), and %(name)s with the export id",
"type": "string" "type": "string"
}, },
"family": { "family": {
"description": "Opaque name used to regroup/separate mountpoints under different ZEO processes (must be valid as a file name and as a ConfigParser section name)",
"default": "default", "default": "default",
"description": "Opaque name used to regroup/separate mountpoints under different ZEO processes (must be valid as a file name and as a ConfigParser section name)",
"pattern": "^[^<>:\"/\\|?*\\]\\[ ]*$", "pattern": "^[^<>:\"/\\|?*\\]\\[ ]*$",
"type": "string" "type": "string"
}, },
"path": { "path": {
"description": "FileStorage file path, '%(zodb)s' occurrences are replaced with the path to partition's srv/zodb directory, and %(name)s with the export id",
"default": "%(zodb)s/%(name)s.fs", "default": "%(zodb)s/%(name)s.fs",
"description": "FileStorage file path, '%(zodb)s' occurrences are replaced with the path to partition's srv/zodb directory, and %(name)s with the export id",
"type": "string" "type": "string"
} }
}, },
......
{ {
"name": "ERP5",
"description": "ERP5, Open-Source ERP", "description": "ERP5, Open-Source ERP",
"name": "ERP5",
"serialisation": "json-in-xml", "serialisation": "json-in-xml",
"software-type": { "software-type": {
"default": { "default": {
"title": "Default",
"description": "No automated database modification (ERP5Site is not automatically created).", "description": "No automated database modification (ERP5Site is not automatically created).",
"index": 0,
"request": "instance-erp5-input-schema.json", "request": "instance-erp5-input-schema.json",
"response": "instance-erp5-output-schema.json", "response": "instance-erp5-output-schema.json",
"index": 0 "title": "Default"
} }
} }
} }
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