Debian Codegraph @

config/v3_4_experimental/schema/ignition.json

raw
1 {
2 "$schema": "http://json-schema.org/draft-04/schema#",
3 "title": "ignition",
4 "type": "object",
5 "properties": {
6 "ignition": {
7 "$ref": "#/definitions/ignition"
8 },
9 "storage": {
10 "$ref": "#/definitions/storage"
11 },
12 "systemd": {
13 "$ref": "#/definitions/systemd"
14 },
15 "passwd": {
16 "$ref": "#/definitions/passwd"
17 },
18 "kernelArguments": {
19 "$ref": "#/definitions/kernelArguments"
20 }
21 },
22 "required": [
23 "ignition"
24 ],
25 "definitions": {
26 "resource": {
27 "type": "object",
28 "properties": {
29 "source": {
30 "type": ["string", "null"]
31 },
32 "compression": {
33 "type": ["string", "null"]
34 },
35 "httpHeaders": {
36 "$ref": "#/definitions/httpHeaders"
37 },
38 "verification": {
39 "$ref": "#/definitions/verification"
40 }
41 }
42 },
43 "verification": {
44 "type": "object",
45 "properties": {
46 "hash": { "type": ["string", "null"] }
47 }
48 },
49 "httpHeaders": {
50 "type": "array",
51 "items": {
52 "type": "object",
53 "properties": {
54 "name": {
55 "type": "string"
56 },
57 "value": {
58 "type": ["string", "null"]
59 }
60 },
61 "required": [
62 "name"
63 ]
64 }
65 },
66 "ignition": {
67 "type": "object",
68 "properties": {
69 "version": {
70 "type": "string"
71 },
72 "config": {
73 "$ref": "#/definitions/ignition/definitions/ignition-config"
74 },
75 "timeouts": {
76 "$ref": "#/definitions/ignition/definitions/timeouts"
77 },
78 "security": {
79 "$ref": "#/definitions/ignition/definitions/security"
80 },
81 "proxy": {
82 "$ref": "#/definitions/ignition/definitions/proxy"
83 }
84 },
85 "definitions": {
86 "ignition-config": {
87 "type": "object",
88 "properties": {
89 "merge": {
90 "type": "array",
91 "items": {
92 "$ref": "#/definitions/resource"
93 }
94 },
95 "replace": {
96 "$ref": "#/definitions/resource"
97 }
98 }
99 },
100 "security": {
101 "type": "object",
102 "properties": {
103 "tls": {
104 "type": "object",
105 "properties": {
106 "certificateAuthorities": {
107 "type": "array",
108 "items": {
109 "$ref": "#/definitions/resource"
110 }
111 }
112 }
113 }
114 }
115 },
116 "proxy": {
117 "type": "object",
118 "properties": {
119 "httpProxy": {
120 "type": ["string", "null"]
121 },
122 "httpsProxy": {
123 "type": ["string", "null"]
124 },
125 "noProxy": {
126 "type": "array",
127 "items": {
128 "type": "string"
129 }
130 }
131 }
132 },
133 "timeouts": {
134 "type": "object",
135 "properties": {
136 "httpResponseHeaders": {
137 "type": ["integer", "null"]
138 },
139 "httpTotal": {
140 "type": ["integer", "null"]
141 }
142 }
143 }
144 },
145 "required": [
146 "version"
147 ]
148 },
149 "storage": {
150 "type": "object",
151 "properties": {
152 "disks": {
153 "type": "array",
154 "items": {
155 "$ref": "#/definitions/storage/definitions/disk"
156 }
157 },
158 "raid": {
159 "type": "array",
160 "items": {
161 "$ref": "#/definitions/storage/definitions/raid"
162 }
163 },
164 "luks": {
165 "type": "array",
166 "items": {
167 "$ref": "#/definitions/storage/definitions/luks"
168 }
169 },
170 "filesystems": {
171 "type": "array",
172 "items": {
173 "$ref": "#/definitions/storage/definitions/filesystem"
174 }
175 },
176 "files": {
177 "type": "array",
178 "items": {
179 "$ref": "#/definitions/storage/definitions/file"
180 }
181 },
182 "directories": {
183 "type": "array",
184 "items": {
185 "$ref": "#/definitions/storage/definitions/directory"
186 }
187 },
188 "links": {
189 "type": "array",
190 "items": {
191 "$ref": "#/definitions/storage/definitions/link"
192 }
193 }
194 },
195 "definitions": {
196 "disk": {
197 "type": "object",
198 "properties": {
199 "device": {
200 "type": "string"
201 },
202 "wipeTable": {
203 "type": ["boolean", "null"]
204 },
205 "partitions": {
206 "type": "array",
207 "items": {
208 "$ref": "#/definitions/storage/definitions/partition"
209 }
210 }
211 },
212 "required": [
213 "device"
214 ]
215 },
216 "raid": {
217 "type": "object",
218 "properties": {
219 "name": {
220 "type": "string"
221 },
222 "level": {
223 "type": ["string", "null"]
224 },
225 "spares": {
226 "type": ["integer", "null"]
227 },
228 "devices": {
229 "type": "array",
230 "items": {
231 "type": "string"
232 }
233 },
234 "options": {
235 "type": "array",
236 "items": {
237 "type": "string"
238 }
239 }
240 },
241 "required": [
242 "name"
243 ]
244 },
245 "luks": {
246 "type": "object",
247 "properties": {
248 "name": {
249 "type": "string"
250 },
251 "label": {
252 "type": ["string", "null"]
253 },
254 "uuid": {
255 "type": ["string", "null"]
256 },
257 "device": {
258 "type": ["string", "null"]
259 },
260 "keyFile": {
261 "$ref": "#/definitions/resource"
262 },
263 "wipeVolume": {
264 "type": ["boolean", "null"]
265 },
266 "clevis": {
267 "$ref": "#/definitions/storage/definitions/clevis"
268 },
269 "options": {
270 "type": "array",
271 "items": {
272 "type": "string"
273 }
274 }
275 },
276 "required": [
277 "name"
278 ]
279 },
280 "clevis": {
281 "type": "object",
282 "properties": {
283 "custom": {
284 "$ref": "#/definitions/storage/definitions/clevisCustom"
285 },
286 "tpm2": {
287 "type": ["boolean", "null"]
288 },
289 "tang": {
290 "type": "array",
291 "items": {
292 "$ref": "#/definitions/storage/definitions/tang"
293 }
294 },
295 "threshold": {
296 "type": ["integer", "null"]
297 }
298 }
299 },
300 "clevisCustom": {
301 "type": "object",
302 "properties": {
303 "pin": {
304 "type": ["string", "null"]
305 },
306 "config": {
307 "type": ["string", "null"]
308 },
309 "needsNetwork": {
310 "type": ["boolean", "null"]
311 }
312 }
313 },
314 "tang": {
315 "type": "object",
316 "properties": {
317 "url": {
318 "type": "string"
319 },
320 "thumbprint": {
321 "type": ["string", "null"]
322 }
323 }
324 },
325 "filesystem": {
326 "type": "object",
327 "properties": {
328 "path": {
329 "type": ["string", "null"]
330 },
331 "device": {
332 "type": "string"
333 },
334 "format": {
335 "type": ["string", "null"]
336 },
337 "options": {
338 "type": "array",
339 "items": {
340 "type": "string"
341 }
342 },
343 "mountOptions": {
344 "type": "array",
345 "items": {
346 "type": "string"
347 }
348 },
349 "wipeFilesystem": {
350 "type": ["boolean", "null"]
351 },
352 "label": {
353 "type": ["string", "null"]
354 },
355 "uuid": {
356 "type": ["string", "null"]
357 }
358 },
359 "required": [
360 "device"
361 ]
362 },
363 "file": {
364 "allOf": [
365 {
366 "$ref": "#/definitions/storage/definitions/node"
367 },
368 {
369 "type": "object",
370 "properties": {
371 "mode": {
372 "type": ["integer", "null"]
373 },
374 "contents": {
375 "$ref": "#/definitions/resource"
376 },
377 "append": {
378 "type": "array",
379 "items": {
380 "$ref": "#/definitions/resource"
381 }
382 }
383 }
384 }
385 ]
386 },
387 "directory": {
388 "allOf": [
389 {
390 "$ref": "#/definitions/storage/definitions/node"
391 },
392 {
393 "type": "object",
394 "properties": {
395 "mode": {
396 "type": ["integer", "null"]
397 }
398 }
399 }
400 ]
401 },
402 "link": {
403 "allOf": [
404 {
405 "$ref": "#/definitions/storage/definitions/node"
406 },
407 {
408 "type": "object",
409 "properties": {
410 "target": {
411 "type": ["string", "null"]
412 },
413 "hard": {
414 "type": ["boolean", "null"]
415 }
416 }
417 }
418 ]
419 },
420 "partition": {
421 "type": "object",
422 "properties": {
423 "label": {
424 "type": ["string", "null"]
425 },
426 "number": {
427 "type": "integer"
428 },
429 "sizeMiB": {
430 "type": ["integer", "null"]
431 },
432 "startMiB": {
433 "type": ["integer", "null"]
434 },
435 "typeGuid": {
436 "type": ["string", "null"]
437 },
438 "guid": {
439 "type": ["string", "null"]
440 },
441 "wipePartitionEntry": {
442 "type": ["boolean", "null"]
443 },
444 "shouldExist": {
445 "type": ["boolean", "null"]
446 },
447 "resize": {
448 "type": ["boolean", "null"]
449 }
450 }
451 },
452 "node": {
453 "type": "object",
454 "properties": {
455 "path": {
456 "type": "string"
457 },
458 "overwrite": {
459 "type": ["boolean", "null"]
460 },
461 "user": {
462 "type": "object",
463 "properties": {
464 "id": {
465 "type": ["integer", "null"]
466 },
467 "name": {
468 "type": ["string", "null"]
469 }
470 }
471 },
472 "group": {
473 "type": "object",
474 "properties": {
475 "id": {
476 "type": ["integer", "null"]
477 },
478 "name": {
479 "type": ["string", "null"]
480 }
481 }
482 }
483 },
484 "required": [
485 "path"
486 ]
487 }
488 }
489 },
490 "systemd": {
491 "type": "object",
492 "properties": {
493 "units": {
494 "type": "array",
495 "items": {
496 "$ref": "#/definitions/systemd/definitions/unit"
497 }
498 }
499 },
500 "definitions": {
501 "unit": {
502 "type": "object",
503 "properties": {
504 "name": {
505 "type": "string"
506 },
507 "enabled": {
508 "type": ["boolean", "null"]
509 },
510 "mask": {
511 "type": ["boolean", "null"]
512 },
513 "contents": {
514 "type": ["string", "null"]
515 },
516 "dropins": {
517 "type": "array",
518 "items": {
519 "$ref": "#/definitions/systemd/definitions/dropin"
520 }
521 }
522 },
523 "required": [
524 "name"
525 ]
526 },
527 "dropin": {
528 "type": "object",
529 "properties": {
530 "name": {
531 "type": "string"
532 },
533 "contents": {
534 "type": ["string", "null"]
535 }
536 },
537 "required": [
538 "name"
539 ]
540 }
541 }
542 },
543 "kernelArguments": {
544 "type": "object",
545 "properties": {
546 "shouldExist": {
547 "type": "array",
548 "items": {
549 "$ref": "#/definitions/kernelArgument"
550 }
551 },
552 "shouldNotExist": {
553 "type": "array",
554 "items": {
555 "$ref": "#/definitions/kernelArgument"
556 }
557 }
558 }
559 },
560 "kernelArgument": {
561 "type": "string"
562 },
563 "passwd": {
564 "type": "object",
565 "properties": {
566 "users": {
567 "type": "array",
568 "items": {
569 "$ref": "#/definitions/passwd/definitions/user"
570 }
571 },
572 "groups": {
573 "type": "array",
574 "items": {
575 "$ref": "#/definitions/passwd/definitions/group"
576 }
577 }
578 },
579 "definitions": {
580 "user": {
581 "type": "object",
582 "properties": {
583 "name": {
584 "type": "string"
585 },
586 "passwordHash": {
587 "type": ["string", "null"]
588 },
589 "sshAuthorizedKeys": {
590 "type": "array",
591 "items": {
592 "type": "string"
593 }
594 },
595 "uid": {
596 "type": ["integer", "null"]
597 },
598 "gecos": {
599 "type": ["string", "null"]
600 },
601 "homeDir": {
602 "type": ["string", "null"]
603 },
604 "noCreateHome": {
605 "type": ["boolean", "null"]
606 },
607 "primaryGroup": {
608 "type": ["string", "null"]
609 },
610 "groups": {
611 "type": "array",
612 "items": {
613 "type": "string"
614 }
615 },
616 "noUserGroup": {
617 "type": ["boolean", "null"]
618 },
619 "system": {
620 "type": ["boolean", "null"]
621 },
622 "noLogInit": {
623 "type": ["boolean", "null"]
624 },
625 "shell": {
626 "type": ["string", "null"]
627 },
628 "shouldExist": {
629 "type": ["boolean", "null"]
630 }
631 },
632 "required": [
633 "name"
634 ]
635 },
636 "group": {
637 "type": "object",
638 "properties": {
639 "name": {
640 "type": "string"
641 },
642 "gid": {
643 "type": ["integer", "null"]
644 },
645 "passwordHash": {
646 "type": ["string", "null"]
647 },
648 "system": {
649 "type": ["boolean", "null"]
650 },
651 "shouldExist": {
652 "type": ["boolean", "null"]
653 }
654 },
655 "required": [
656 "name"
657 ]
658 }
659 }
660 }
661 }
662 }