Skip to content

Commit 5ca2efc

Browse files
committed
schema
1 parent e97d93b commit 5ca2efc

File tree

1 file changed

+102
-64
lines changed

1 file changed

+102
-64
lines changed

consul/consul-schema.json

Lines changed: 102 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,108 @@
11
{
2-
"type": "object",
3-
"title": "Consul Agent Configuration",
4-
"properties": {
5-
"ui": {
6-
"type": "boolean",
7-
"title": "UI?",
8-
"description": "Enable the Consul Web UI?"
9-
},
10-
"if": {
11-
"properties": {
2+
"type": "object",
3+
"title": "Consul Agent Configuration",
4+
"properties": {
5+
"node_name": {
6+
"type": "string",
7+
"title": "Node Name",
8+
"info": ["Human-Readable Node Name"]
9+
},
10+
"data_dir": {
11+
"type": "string",
12+
"title": "Data Directory",
13+
"info": [
14+
"Local Filesystem Directory Used by Consul to Persist Data"
15+
]
16+
},
17+
"advertise_addr": {
18+
"type": "string",
19+
"title": "Advertise Address",
20+
"info": [
21+
"IP Address / Hostname to advertise to other Consul cluster peers (use if Consul is behind a load balancer or proxy)"
22+
]
23+
},
24+
"client_addr": {
25+
"type": "string",
26+
"title": "Client Address",
27+
"info": ["Client address or something"]
28+
},
29+
"log_level": {
30+
"type": "string",
31+
"widget": "Select",
32+
"enum": ["INFO", "WARN", "DEBUG"],
33+
"title": "Log Level",
34+
"info": ["Log Verbosity Level"]
35+
},
36+
"ui": {
37+
"type": "boolean",
38+
"info": "Enable the Consul Web UI?",
39+
"deleteOnEmpty": true
40+
},
1241
"server": {
13-
"type": "boolean"
14-
}
15-
}
16-
},
17-
"then": {
18-
"properties": {
19-
"datacenter": {
20-
"type": "string",
21-
"title": "Datacenter",
22-
"description": "Datacenter ID for this Consul Instance"
42+
"type": "object",
43+
"properties": {
44+
"server": {
45+
"type": "boolean",
46+
"deleteOnEmpty": true,
47+
"info": ["Is this a Consul server? If not, it's a client."]
48+
}
49+
},
50+
"dependentSchemas": {
51+
"server": {
52+
"properties": {
53+
"bootstrap_expect": {
54+
"type": "number",
55+
"widget": "NumberSlider",
56+
"exclusiveMinimum": 0,
57+
"exclusiveMaximum": 8,
58+
"enum": [1, 3, 5, 6, 7],
59+
"view": {
60+
"marks": true,
61+
"marksLabel": " Nodes",
62+
"tooltip": "auto",
63+
"sizeXs": 10,
64+
"sizeMd": 8
65+
},
66+
"title": "Bootstrap Expect",
67+
"info": [
68+
"Total number of Consul servers that must peer in order for the cluster to bootstrap"
69+
]
70+
},
71+
"datacenter": {
72+
"type": "string",
73+
"title": "Datacenter",
74+
"info": ["Datacenter ID for this Consul Instance"]
75+
},
76+
"primary_datacenter": {
77+
"type": "string",
78+
"title": "Primary Datacenter",
79+
"info": ["Primary Datacenter of the Cluster"]
80+
}
81+
}
82+
}
83+
}
2384
},
24-
"primary_datacenter": {
25-
"type": "string",
26-
"title": "Primary Datacenter",
27-
"description": "Primary Datacenter of the Cluster"
85+
"addresses": {
86+
"type": "object",
87+
"properties": {
88+
"dns": {
89+
"type": "boolean",
90+
"deleteOnEmpty": true,
91+
"title": "Enable DNS Listener?"
92+
}
93+
},
94+
"dependentSchemas": {
95+
"dns": {
96+
"properties": {
97+
"address": {
98+
"type": "string"
99+
},
100+
"port": {
101+
"type": "number"
102+
}
103+
}
104+
}
105+
}
28106
}
29-
}
30-
},
31-
"server": {
32-
"type": "boolean",
33-
"title": "Server?",
34-
"description": "Is this a Consul server? If not, it's a client."
35-
},
36-
"bootstrap_expect": {
37-
"type": "number",
38-
"minimum": 1,
39-
"maximum": 7,
40-
"title": "Bootstrap Expect",
41-
"description": "Total number of Consul servers that must peer in order for the cluster to bootstrap"
42-
},
43-
"advertise_addr": {
44-
"type": "string",
45-
"title": "Advertise Address",
46-
"description": "IP Address / Hostname to advertise to other Consul cluster peers (use if Consul is behind a load balancer or proxy)"
47-
},
48-
"data_dir": {
49-
"type": "string",
50-
"title": "Data Directory",
51-
"description": "Local Filesystem Directory Used by Consul to Persist Data"
52-
},
53-
"client_addr": {
54-
"type": "string",
55-
"title": "Client Address",
56-
"description": "Client address or something"
57-
},
58-
"node_name": {
59-
"type": "string",
60-
"title": "Node Name",
61-
"description": "Human-Readable Node Name"
62-
},
63-
"log_level": {
64-
"type": "string",
65-
"enum": ["INFO", "WARN", "DEBUG"],
66-
"title": "Log Level",
67-
"description": "Log Verbosity Level"
68107
}
69-
}
70108
}

0 commit comments

Comments
 (0)