erp5: Make initial user login and password configurable
[slapos.git] / software / erp5 / instance-erp5-input-schema.json
1 {
2   "$schema": "http://json-schema.org/draft-04/schema#",
3   "extends": "./schema-definitions.json#",
4   "description": "Parameters to instantiate ERP5",
5   "additionalProperties": false,
6   "properties": {
7     "site-id": {
8       "description": "ERP5Site object's id",
9       "default": "erp5",
10       "type": "string"
11     },
12     "timezone": {
13       "description": "Main site's timezone",
14       "default": "UTC",
15       "type": "string"
16     },
17     "deadlock-debugger-password": {
18       "description": "Password for /manage_debug_threads",
19       "default": "random",
20       "type": "string"
21     },
22     "inituser-login": {
23       "description": "Login of the initial/rescue user",
24       "default": "zope",
25       "type": "string"
26     },
27     "inituser-password": {
28       "description": "Password of the initial/rescue user",
29       "default": "random",
30       "type": "string"
31     },
32     "frontend": {
33       "description": "Front-end slave instance request parameters",
34       "properties": {
35         "software-url": {
36           "description": "Front-end's software type. If this parameter is the empty string, no front-end instance is requested.",
37           "default": "",
38           "type": "string"
39         },
40         "domain": {
41           "description": "The domain name to request front-end to respond as.",
42           "default": "",
43           "type": "string"
44         },
45         "software-type": {
46           "description": "Request a front-end slave instance of this software type.",
47           "default": "RootSoftwareInstance",
48           "type": ""
49         },
50         "instance-guid": {
51           "description": "GUID of computer instance must be requested on. Mandatory if software-url is a non-empty string.",
52           "type": "string"
53         }
54       },
55       "type": "object"
56     },
57     "zope-partition-dict": {
58       "description": "Zope layout definition",
59       "patternProperties": {
60         ".*": {
61           "additionalProperties": false,
62           "properties": {
63             "family": {
64               "description": "The family this partition is part of. For example: 'public', 'admin', 'backoffice', 'web-service'... Each family gets its own balancer entry. It has no special meaning for the system.",
65               "default": "default",
66               "type": "string"
67             },
68             "instance-count": {
69               "description": "Number of Zopes to setup on this partition",
70               "default": 1,
71               "type": "integer"
72             },
73             "thread-amount": {
74               "description": "Number of worker threads for each created Zope process",
75               "default": 1,
76               "type": "integer"
77             },
78             "timerserver-interval": {
79               "description": "Timerserver tick perdiod, in seconds, or 0 to disable",
80               "default": 5,
81               "type": "integer"
82             },
83             "longrequest-logger-interval": {
84               "description": "Period, in seconds, with which LongRequestLogger polls worker thread stack traces, or -1 to disable",
85               "default": -1,
86               "type": "integer"
87             },
88             "longrequest-logger-timeout": {
89               "description": "Transaction duration after which LongRequestLogger will start logging its stack trace, in seconds",
90               "default": 1,
91               "type": "integer"
92             },
93             "port-base": {
94               "allOf": [{
95                 "$ref": "#/definitions/tcpv4port"
96               }, {
97                 "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)",
98                 "default": 2200
99               }]
100             },
101             "computer-guid": {
102               "description": "GUID of computer instance must be requested on",
103               "type": "string"
104             }
105           },
106           "type": "object"
107         }
108       },
109       "type": "object"
110     },
111     "kumofs-computer-guid": {
112       "description": "GUID of computer instance must be requested on",
113       "type": "string"
114     },
115     "kumofs": {
116       "description": "Persistent memcached service",
117       "additionalProperties": {
118         "$ref": "./instance-kumofs-input-schema.json#properties"
119       },
120       "type": "object"
121     },
122     "memcached-computer-guid": {
123       "description": "GUID of computer instance must be requested on",
124       "type": "string"
125     },
126     "memcached": {
127       "description": "Volatile memcached service",
128       "additionalProperties": {
129         "$ref": "./instance-kumofs-input-schema.json#properties"
130       },
131       "type": "object"
132     },
133     "cloudooo-computer-guid": {
134       "description": "GUID of computer instance must be requested on",
135       "type": "string"
136     },
137     "cloudooo": {
138       "description": "Format conversion service",
139       "additionalProperties": {
140         "$ref": "./instance-cloudooo-input-schema.json#properties"
141       },
142       "type": "object"
143     },
144     "mariadb-computer-guid": {
145       "description": "GUID of computer instance must be requested on",
146       "type": "string"
147     },
148     "mariadb": {
149       "description": "Relational database service",
150       "additionalProperties": {
151         "$ref": "./instance-mariadb-input-schema.json#properties"
152       },
153       "type": "object"
154     },
155     "zodb-computer-guid": {
156       "description": "GUID of computer instance must be requested on",
157       "type": "string"
158     },
159     "zodb-software-type": {
160       "description": "Zope Object DataBase implementation",
161       "default": "zeo",
162       "enum": ["zeo", "neo"],
163       "type": "string"
164     },
165     "zodb": {
166       "description": "Zope Object DataBase service",
167       "oneOf": [
168         {"$ref": "./instance-neo-input-schema.json#properties"},
169         {"$ref": "./instance-zeo-input-schema.json#properties"}
170       ]
171     }
172   }
173 }