Skip to content

Commit d13ac20

Browse files
committed
Consul stuff
1 parent 9fd2aa4 commit d13ac20

File tree

5 files changed

+24114
-66
lines changed

5 files changed

+24114
-66
lines changed

consul-config-schema.json

Lines changed: 302 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,302 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"type": "object",
4+
"properties": {
5+
"acl": {
6+
"type": "array",
7+
"items": {
8+
"type": "object",
9+
"properties": {
10+
"default_policy": {
11+
"type": "string",
12+
"title": "Default Policy"
13+
},
14+
"down_policy": {
15+
"type": "string",
16+
"title": "Down Policy"
17+
},
18+
"enable_key_list_policy": {
19+
"type": "string",
20+
"title": "Enable Key List Policy"
21+
},
22+
"enable_token_persistence": {
23+
"type": "boolean",
24+
"title": "Enable Token Persistence"
25+
},
26+
"enable_token_replication": {
27+
"type": "string",
28+
"title": "Enable Token Replication"
29+
},
30+
"enabled": {
31+
"type": "boolean",
32+
"title": "Enabled?"
33+
},
34+
"policy_ttl": {
35+
"type": "string",
36+
"title": "Policy TTL"
37+
},
38+
"role_ttl": {
39+
"type": "string",
40+
"title": "Role TTL"
41+
},
42+
"token_ttl": {
43+
"type": "string",
44+
"title": "Token TTL"
45+
},
46+
"tokens": {
47+
"type": "array",
48+
"items": {
49+
"type": "object",
50+
"properties": {
51+
"agent": {
52+
"type": "string",
53+
"title": "Agent"
54+
},
55+
"agent_master": {
56+
"type": "string",
57+
"title": "Agent Master"
58+
},
59+
"default": {
60+
"type": "string",
61+
"title": "Default"
62+
},
63+
"managed_service_provider": {
64+
"type": "array",
65+
"items": {
66+
"type": "string"
67+
},
68+
"title": "Managed Service Provider"
69+
},
70+
"master": {
71+
"type": "string",
72+
"title": "Master"
73+
},
74+
"replication": {
75+
"type": "string",
76+
"title": "Replication"
77+
}
78+
}
79+
},
80+
"title": "Tokens"
81+
}
82+
}
83+
},
84+
"title": "ACL"
85+
},
86+
"advertise_addr": {
87+
"type": "string",
88+
"title": "Advertise Address"
89+
},
90+
"auto_encrypt": {
91+
"type": "array",
92+
"items": {
93+
"type": "object",
94+
"properties": {
95+
"allow_tls": {
96+
"type": "boolean"
97+
}
98+
}
99+
},
100+
"title": "Auto Encrypt"
101+
},
102+
"bootstrap_expect": {
103+
"type": "number",
104+
"title": "Bootstrap Expect"
105+
},
106+
"ca_file": {
107+
"type": "string",
108+
"title": "CA File"
109+
},
110+
"cert_file": {
111+
"type": "string",
112+
"title": "Certificate File"
113+
},
114+
"client_addr": {
115+
"type": "string",
116+
"title": "Client Address"
117+
},
118+
"connect": {
119+
"type": "array",
120+
"items": {
121+
"type": "object",
122+
"properties": {
123+
"ca_config": {
124+
"type": "array",
125+
"items": {
126+
"type": "object",
127+
"properties": {
128+
"address": {
129+
"type": "string",
130+
"title": "Address"
131+
},
132+
"intermediate_pki_path": {
133+
"type": "string",
134+
"title": "Intermediate PKI Path"
135+
},
136+
"root_pki_path": {
137+
"type": "string",
138+
"title": "Root PKI Path"
139+
},
140+
"token": {
141+
"type": "string",
142+
"title": "Token"
143+
}
144+
}
145+
},
146+
"title": "CA Config"
147+
},
148+
"ca_provider": {
149+
"type": "string",
150+
"title": "CA Provider"
151+
},
152+
"enable_mesh_gateway_wan_federation": {
153+
"type": "boolean",
154+
"title": "Enable Mesh Gateway WAN Federation?"
155+
},
156+
"enabled": {
157+
"type": "boolean",
158+
"title": "Enabled?"
159+
}
160+
}
161+
},
162+
"title": "Connect"
163+
},
164+
"data_dir": {
165+
"type": "string",
166+
"title": "Data Directory"
167+
},
168+
"datacenter": {
169+
"type": "string",
170+
"title": "Datacenter"
171+
},
172+
"dns_config": {
173+
"type": "array",
174+
"items": {
175+
"type": "object",
176+
"properties": {
177+
"allow_stale": {
178+
"type": "boolean",
179+
"title": "Allow Stale?"
180+
},
181+
"enable_truncate": {
182+
"type": "boolean",
183+
"title": "Enable Truncate?"
184+
},
185+
"max_stale": {
186+
"type": "string",
187+
"title": "Max Stale?"
188+
},
189+
"node_ttl": {
190+
"type": "string",
191+
"title": "Node TTL"
192+
},
193+
"service_ttl": {
194+
"type": "string"
195+
}
196+
}
197+
},
198+
"title": "DNS Config"
199+
},
200+
"key_file": {
201+
"type": "string",
202+
"title": "Key File"
203+
},
204+
"node_name": {
205+
"type": "string",
206+
"title": "Node Name"
207+
},
208+
"ports": {
209+
"type": "array",
210+
"items": {
211+
"type": "object",
212+
"properties": {
213+
"dns": {
214+
"type": "number"
215+
},
216+
"expose_max_port": {
217+
"type": "number"
218+
},
219+
"expose_min_port": {
220+
"type": "number"
221+
},
222+
"grpc": {
223+
"type": "number"
224+
},
225+
"http": {
226+
"type": "number"
227+
},
228+
"https": {
229+
"type": "number"
230+
},
231+
"serf_lan": {
232+
"type": "number"
233+
},
234+
"serf_wan": {
235+
"type": "number"
236+
},
237+
"server": {
238+
"type": "number"
239+
},
240+
"sidecar_max_port": {
241+
"type": "number"
242+
},
243+
"sidecar_min_port": {
244+
"type": "number"
245+
}
246+
}
247+
},
248+
"title": "Ports"
249+
},
250+
"primary_datacenter": {
251+
"type": "string"
252+
},
253+
"retry_join": {
254+
"type": "array",
255+
"items": {
256+
"type": "string"
257+
}
258+
},
259+
"segments": {
260+
"type": "array",
261+
"items": {
262+
"type": "object",
263+
"properties": {
264+
"advertise": {
265+
"type": "string"
266+
},
267+
"bind": {
268+
"type": "string"
269+
},
270+
"name": {
271+
"type": "string"
272+
},
273+
"port": {
274+
"type": "number"
275+
}
276+
},
277+
"required": [
278+
"advertise",
279+
"bind",
280+
"name",
281+
"port"
282+
]
283+
}
284+
},
285+
"server": {
286+
"type": "boolean"
287+
},
288+
"ui": {
289+
"type": "boolean"
290+
},
291+
"verify_incoming": {
292+
"type": "boolean"
293+
},
294+
"verify_outgoing": {
295+
"type": "boolean"
296+
},
297+
"verify_server_hostname": {
298+
"type": "boolean"
299+
}
300+
},
301+
"title": "Consul Agent Configuration"
302+
}

0 commit comments

Comments
 (0)