summaryrefslogtreecommitdiff
path: root/tools/configschema.py
blob: 9bb4b15e847e3fcef033a51e4a97671c1b58c06c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Copyright (c) 2017, NORDUnet A/S.
# See LICENSE for licensing information.

localconfigschema = [
    ("nodename", "string", "nodename"),
    ("frontendaddress", "string", "ip address"),
    ("ctapiaddress", "string", "ip address"),
    ("storageaddress", "string", "ip address"),
    ("signingaddress", "string", "ip address"),
    ("mergeaddress", "string", "ip address"),
    ("publichttpaddress", "string", "ip address"),
    ("configurl", "string", "url"),
    ("logadminkey", "string", "key"),
    ("dbbackend", "string", ["permdb", "fsdb"]),
    ("paths/configdir", "string", "path"),
    ("paths/db", "string", "path"),
    ("paths/https_cacertfile", "string", "path"),
    ("paths/https_certfile", "string", "path"),
    ("paths/https_keyfile", "string", "path"),
    ("paths/knownroots", "string", "path"),
    ("paths/logpublickey", "string", "path"),
    ("paths/privatekeys", "string", "path"),
    ("paths/public_cacertfile", "string", "path"),
    ("paths/publickeys", "string", "path"),
    ("paths/verifycert_bin", "string", "path"),
    ("paths/mergedb", "string", "path"),
    ("paths/logprivatekey", "string", "path"),
    ("ratelimits/add_chain", "string", "rate"),
    ("merge/min-delay", "integer", "seconds"),
    ("merge/backup-window-size", "integer", "number of entries"),
    ("merge/backup-sendlog-chunksize", "integer", "number of entries"),
    ("merge/backup-sendentries-chunksize", "integer", "number of entries"),
    ("merge/dist-window-size", "integer", "number of entries"),
    ("merge/dist-sendlog-chunksize", "integer", "number of entries"),
    ("merge/dist-sendentries-chunksize", "integer", "number of entries"),
]

globalconfigschema = [
    ("frontendnodes/[]/name", "string", "nodename"),
    ("frontendnodes/[]/address", "string", "ip address"),
    ("frontendnodes/[]/publicaddress", "string", "ip address"),
    ("mergenodes/[]/name", "string", "nodename"),
    ("mergenodes/[]/address", "string", "ip address"),
    ("signingnodes/[]/name", "string", "nodename"),
    ("signingnodes/[]/address", "string", "ip address"),
    ("storagenodes/[]/name", "string", "nodename"),
    ("storagenodes/[]/address", "string", "ip address"),
    ("statusservers/[]/name", "string", "nodename"),
    ("statusservers/[]/address", "string", "ip address"),
    ("statusservers/[]/publicaddress", "string", "ip address"),
    ("apikeys/[]/nodename", "string", "nodename"),
    ("apikeys/[]/publickey", "string", "key"),
    ("baseurl", "string", "url"),
    ("primarymergenode", "string", "nodename"),
    ("storage-quorum-size", "integer", "number of nodes"),
    ("backup-quorum-size", "integer", "number of nodes"),
    ("logpublickey", "string", "key"),
    ("cafingerprint", "string", "fingerprint"),
    ("version", "integer", "version"),
    ("mmd", "integer", "seconds"),
]

globalconfigdefaults = [
    ("statusservers", []),
]