summaryrefslogtreecommitdiff
path: root/cloudinit/config/schemas/schema-cloud-config-v1.json
blob: 3c2b90f94e8764cb0e9da8dc273b5787817017a6 (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$defs": {
    "all_modules": {
      "enum": [
        "ansible",
        "apk-configure",
        "apk_configure",
        "apt-configure",
        "apt_configure",
        "apt-pipelining",
        "apt_pipelining",
        "bootcmd",
        "byobu",
        "ca-certs",
        "ca_certs",
        "chef",
        "disable-ec2-metadata",
        "disable_ec2_metadata",
        "disk-setup",
        "disk_setup",
        "fan",
        "final-message",
        "final_message",
        "growpart",
        "grub-dpkg",
        "grub_dpkg",
        "install-hotplug",
        "install_hotplug",
        "keyboard",
        "keys-to-console",
        "keys_to_console",
        "landscape",
        "locale",
        "lxd",
        "mcollective",
        "migrator",
        "mounts",
        "ntp",
        "package-update-upgrade-install",
        "package_update_upgrade_install",
        "phone-home",
        "phone_home",
        "power-state-change",
        "power_state_change",
        "puppet",
        "refresh-rmc-and-interface",
        "refresh_rmc_and_interface",
        "reset-rmc",
        "reset_rmc",
        "resizefs",
        "resolv-conf",
        "resolv_conf",
        "rh-subscription",
        "rh_subscription",
        "rightscale-userdata",
        "rightscale_userdata",
        "rsyslog",
        "runcmd",
        "salt-minion",
        "salt_minion",
        "scripts-per-boot",
        "scripts_per_boot",
        "scripts-per-instance",
        "scripts_per_instance",
        "scripts-per-once",
        "scripts_per_once",
        "scripts-user",
        "scripts_user",
        "scripts-vendor",
        "scripts_vendor",
        "seed-random",
        "seed_random",
        "set-hostname",
        "set_hostname",
        "set-passwords",
        "set_passwords",
        "snap",
        "spacewalk",
        "ssh",
        "ssh-authkey-fingerprints",
        "ssh_authkey_fingerprints",
        "ssh-import-id",
        "ssh_import_id",
        "timezone",
        "ubuntu-advantage",
        "ubuntu_advantage",
        "ubuntu-autoinstall",
        "ubuntu_autoinstall",
        "ubuntu-drivers",
        "ubuntu_drivers",
        "update-etc-hosts",
        "update_etc_hosts",
        "update-hostname",
        "update_hostname",
        "users-groups",
        "users_groups",
        "wireguard",
        "write-files",
        "write_files",
        "write-files-deferred",
        "write_files_deferred",
        "yum-add-repo",
        "yum_add_repo",
        "zypper-add-repo",
        "zypper_add_repo"
      ]
    },
    "users_groups.groups_by_groupname": {
      "additionalProperties": false,
      "patternProperties": {
        "^.+$": {
          "label": "<group_name>",
          "description": "Optional string of single username or a list of usernames to add to the group",
          "type": [
            "string",
            "array"
          ],
          "items": {
            "type": "string"
          },
          "minItems": 1
        }
      }
    },
    "users_groups.user": {
      "oneOf": [
        {
          "required": [
            "name"
          ]
        },
        {
          "required": [
            "snapuser"
          ]
        }
      ],
      "additionalProperties": false,
      "properties": {
        "name": {
          "description": "The user's login name. Required otherwise user creation will be skipped for this user.",
          "type": "string"
        },
        "expiredate": {
          "default": null,
          "description": "Optional. Date on which the user's account will be disabled. Default: ``null``",
          "type": "string",
          "format": "date"
        },
        "gecos": {
          "description": "Optional comment about the user, usually a comma-separated string of real name and contact information",
          "type": "string"
        },
        "groups": {
          "description": "Optional comma-separated string of groups to add the user to.",
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "array",
              "items": {
                "type": [
                  "string"
                ]
              },
              "minItems": 1
            },
            {
              "type": "object",
              "patternProperties": {
                "^.+$": {
                  "label": "<group_name>",
                  "description": "When providing an object for users.groups the ``<group_name>`` keys are the groups to add this user to",
                  "deprecated": true,
                  "deprecated_version": "23.1",
                  "type": [
                    "null"
                  ],
                  "minItems": 1
                }
              },
              "hidden": [
                "patternProperties"
              ]
            }
          ]
        },
        "homedir": {
          "description": "Optional home dir for user. Default: ``/home/<username>``",
          "default": "``/home/<username>``",
          "type": "string"
        },
        "inactive": {
          "description": "Optional string representing the number of days until the user is disabled. ",
          "type": "string"
        },
        "lock-passwd": {
          "default": true,
          "type": "boolean",
          "description": "Default: ``true``",
          "deprecated": true,
          "deprecated_version": "22.3",
          "deprecated_description": "Use ``lock_passwd`` instead."
        },
        "lock_passwd": {
          "default": true,
          "description": "Disable password login. Default: ``true``",
          "type": "boolean"
        },
        "no_create_home": {
          "default": false,
          "description": "Do not create home directory. Default: ``false``",
          "type": "boolean"
        },
        "no_log_init": {
          "default": false,
          "description": "Do not initialize lastlog and faillog for user. Default: ``false``",
          "type": "boolean"
        },
        "no_user_group": {
          "default": false,
          "description": "Do not create group named after user. Default: ``false``",
          "type": "boolean"
        },
        "passwd": {
          "description": "Hash of user password applied when user does not exist. This will NOT be applied if the user already exists. To generate this hash, run: mkpasswd --method=SHA-512 --rounds=4096. **Note:** While hashed password is better than plain text, using ``passwd`` in user-data represents a security risk as user-data could be accessible by third-parties depending on your cloud platform.",
          "type": "string"
        },
        "hashed_passwd": {
          "description": "Hash of user password to be applied. This will be applied even if the user is pre-existing. To generate this hash, run: mkpasswd --method=SHA-512 --rounds=4096. **Note:** While ``hashed_password`` is better than ``plain_text_passwd``, using ``passwd`` in user-data represents a security risk as user-data could be accessible by third-parties depending on your cloud platform.",
          "type": "string"
        },
        "plain_text_passwd": {
          "description": "Clear text of user password to be applied. This will be applied even if the user is pre-existing. There are many more secure options than using plain text passwords, such as ``ssh_import_id`` or ``hashed_passwd``. Do not use this in production as user-data and your password can be exposed.",
          "type": "string"
        },
        "create_groups": {
          "default": true,
          "description": "Boolean set ``false`` to disable creation of specified user ``groups``. Default: ``true``.",
          "type": "boolean"
        },
        "primary_group": {
          "default": "``<username>``",
          "description": "Primary group for user. Default: ``<username>``",
          "type": "string"
        },
        "selinux_user": {
          "description": "SELinux user for user's login. Default to default SELinux user.",
          "type": "string"
        },
        "shell": {
          "description": "Path to the user's login shell. The default is to set no shell, which results in a system-specific default being used.",
          "type": "string"
        },
        "snapuser": {
          "description": " Specify an email address to create the user as a Snappy user through ``snap create-user``. If an Ubuntu SSO account is associated with the address, username and SSH keys will be requested from there.",
          "type": "string"
        },
        "ssh_authorized_keys": {
          "description": "List of SSH keys to add to user's authkeys file. Can not be combined with ``ssh_redirect_user``",
          "type": "array",
          "items": {
            "type": "string"
          },
          "minItems": 1
        },
        "ssh_import_id": {
          "description": "List of SSH IDs to import for user. Can not be combined with ``ssh_redirect_user``.",
          "type": "array",
          "items": {
            "type": "string"
          },
          "minItems": 1
        },
        "ssh_redirect_user": {
          "type": "boolean",
          "default": false,
          "description": "Boolean set to true to disable SSH logins for this user. When specified, all cloud meta-data public SSH keys will be set up in a disabled state for this username. Any SSH login as this username will timeout and prompt with a message to login instead as the ``default_username`` for this instance. Default: ``false``. This key can not be combined with ``ssh_import_id`` or ``ssh_authorized_keys``."
        },
        "system": {
          "description": "Optional. Create user as system user with no home directory. Default: ``false``.",
          "type": "boolean",
          "default": false
        },
        "sudo": {
          "oneOf": [
            {
              "type": [
                "string",
                "null"
              ],
              "description": "Sudo rule to use or false. Absence of a sudo value or ``null`` will result in no sudo rules added for this user."
            },
            {
              "type": "boolean",
              "changed": true,
              "changed_version": "22.2",
              "changed_description": "The value ``false`` is deprecated for this key, use ``null`` instead."
            }
          ]
        },
        "uid": {
          "description": "The user's ID. Default is next available value.",
          "oneOf": [
            {
              "type": "integer"
            },
            {
              "type": "string",
              "changed": true,
              "changed_description": "The use of ``string`` type is deprecated. Use an ``integer`` instead.",
              "changed_version": "22.3"
            }
          ]
        }
      }
    },
    "apt_configure.mirror": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "arches"
        ],
        "additionalProperties": false,
        "properties": {
          "arches": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1
          },
          "uri": {
            "type": "string",
            "format": "uri"
          },
          "search": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            },
            "minItems": 1
          },
          "search_dns": {
            "type": "boolean"
          },
          "keyid": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "keyserver": {
            "type": "string"
          }
        }
      },
      "minItems": 1
    },
    "ca_certs.properties": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "remove-defaults": {
          "type": "boolean",
          "default": false,
          "deprecated": true,
          "deprecated_version": "22.3",
          "deprecated_description": "Use ``remove_defaults`` instead."
        },
        "remove_defaults": {
          "description": "Remove default CA certificates if true. Default: false",
          "type": "boolean",
          "default": false
        },
        "trusted": {
          "description": "List of trusted CA certificates to add.",
          "type": "array",
          "items": {
            "type": "string"
          },
          "minItems": 1
        }
      },
      "minProperties": 1
    },
    "modules_definition": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "$ref": "#/$defs/all_modules"
          },
          {
            "type": "array",
            "prefixItems": [
              {
                "enum": {
                  "$ref": "#/$defs/all_modules"
                }
              },
              {
                "enum": [
                  "always",
                  "once",
                  "once-per-instance"
                ]
              }
            ]
          }
        ]
      }
    },
    "base_config": {
      "type": "object",
      "properties": {
        "cloud_init_modules": {
          "$ref": "#/$defs/modules_definition"
        },
        "cloud_config_modules": {
          "$ref": "#/$defs/modules_definition"
        },
        "cloud_final_modules": {
          "$ref": "#/$defs/modules_definition"
        }
      }
    },
    "cc_ubuntu_autoinstall": {
      "type": "object",
      "properties": {
        "autoinstall": {
          "description": "Opaque autoinstall schema definition for Ubuntu autoinstall. Full schema processed by live-installer. See: https://ubuntu.com/server/docs/install/autoinstall-reference",
          "type": "object",
          "properties": {
            "version": {
              "type": "integer"
            }
          },
          "required": [
            "version"
          ]
        }
      },
      "additionalProperties": true
    },
    "cc_ansible": {
      "type": "object",
      "properties": {
        "ansible": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "install_method": {
              "type": "string",
              "default": "distro",
              "enum": [
                "distro",
                "pip"
              ],
              "description": "The type of installation for ansible. It can be one of the following values:\n\n - ``distro``\n - ``pip``"
            },
            "run_user": {
              "type": "string",
              "description": "User to run module commands as. If install_method: pip, the pip install runs as this user as well."
            },
            "ansible_config": {
              "description": "Sets the ANSIBLE_CONFIG environment variable. If set, overrides default config.",
              "type": "string"
            },
            "setup_controller": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "repositories": {
                  "type": "array",
                  "items": {
                    "required": [
                      "path",
                      "source"
                    ],
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "path": {
                        "type": "string"
                      },
                      "source": {
                        "type": "string"
                      }
                    }
                  }
                },
                "run_ansible": {
                  "type": "array",
                  "items": {
                    "properties": {
                      "playbook_name": {
                        "type": "string"
                      },
                      "playbook_dir": {
                        "type": "string"
                      },
                      "become_password_file": {
                        "type": "string"
                      },
                      "connection_password_file": {
                        "type": "string"
                      },
                      "list_hosts": {
                        "type": "boolean",
                        "default": false
                      },
                      "syntax_check": {
                        "type": "boolean",
                        "default": false
                      },
                      "timeout": {
                        "type": "number",
                        "minimum": 0
                      },
                      "vault_id": {
                        "type": "string"
                      },
                      "vault_password_file": {
                        "type": "string"
                      },
                      "background": {
                        "type": "number",
                        "minimum": 0
                      },
                      "check": {
                        "type": "boolean",
                        "default": false
                      },
                      "diff": {
                        "type": "boolean",
                        "default": false
                      },
                      "module_path": {
                        "type": "string"
                      },
                      "poll": {
                        "type": "number",
                        "minimum": 0
                      },
                      "args": {
                        "type": "string"
                      },
                      "extra_vars": {
                        "type": "string"
                      },
                      "forks": {
                        "type": "number",
                        "minimum": 0
                      },
                      "inventory": {
                        "type": "string"
                      },
                      "scp_extra_args": {
                        "type": "string"
                      },
                      "sftp_extra_args": {
                        "type": "string"
                      },
                      "private_key": {
                        "type": "string"
                      },
                      "connection": {
                        "type": "string"
                      },
                      "module_name": {
                        "type": "string"
                      },
                      "sleep": {
                        "type": "string"
                      },
                      "tags": {
                        "type": "string"
                      },
                      "skip_tags": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            },
            "galaxy": {
              "required": [
                "actions"
              ],
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "actions": {
                  "type": "array",
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^.*$"
                    }
                  }
                }
              }
            },
            "package_name": {
              "type": "string",
              "default": "ansible"
            },
            "pull": {
              "required": [
                "url",
                "playbook_name"
              ],
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "accept_host_key": {
                  "type": "boolean",
                  "default": false
                },
                "clean": {
                  "type": "boolean",
                  "default": false
                },
                "full": {
                  "type": "boolean",
                  "default": false
                },
                "diff": {
                  "type": "boolean",
                  "default": false
                },
                "ssh_common_args": {
                  "type": "string"
                },
                "scp_extra_args": {
                  "type": "string"
                },
                "sftp_extra_args": {
                  "type": "string"
                },
                "private_key": {
                  "type": "string"
                },
                "checkout": {
                  "type": "string"
                },
                "module_path": {
                  "type": "string"
                },
                "timeout": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "connection": {
                  "type": "string"
                },
                "vault_id": {
                  "type": "string"
                },
                "vault_password_file": {
                  "type": "string"
                },
                "module_name": {
                  "type": "string"
                },
                "sleep": {
                  "type": "string"
                },
                "tags": {
                  "type": "string"
                },
                "skip_tags": {
                  "type": "string"
                },
                "playbook_name": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "cc_apk_configure": {
      "type": "object",
      "properties": {
        "apk_repos": {
          "type": "object",
          "minProperties": 1,
          "additionalProperties": false,
          "properties": {
            "preserve_repositories": {
              "type": "boolean",
              "default": false,
              "description": "By default, cloud-init will generate a new repositories file ``/etc/apk/repositories`` based on any valid configuration settings specified within a apk_repos section of cloud config. To disable this behavior and preserve the repositories file from the pristine image, set ``preserve_repositories`` to ``true``.\n\n The ``preserve_repositories`` option overrides all other config keys that would alter ``/etc/apk/repositories``."
            },
            "alpine_repo": {
              "type": [
                "object",
                "null"
              ],
              "additionalProperties": false,
              "properties": {
                "base_url": {
                  "type": "string",
                  "default": "https://alpine.global.ssl.fastly.net/alpine",
                  "description": "The base URL of an Alpine repository, or mirror, to download official packages from. If not specified then it defaults to ``https://alpine.global.ssl.fastly.net/alpine``"
                },
                "community_enabled": {
                  "type": "boolean",
                  "default": false,
                  "description": "Whether to add the Community repo to the repositories file. By default the Community repo is not included."
                },
                "testing_enabled": {
                  "type": "boolean",
                  "default": false,
                  "description": "Whether to add the Testing repo to the repositories file. By default the Testing repo is not included. It is only recommended to use the Testing repo on a machine running the ``Edge`` version of Alpine as packages installed from Testing may have dependencies that conflict with those in non-Edge Main or Community repos."
                },
                "version": {
                  "type": "string",
                  "description": "The Alpine version to use (e.g. ``v3.12`` or ``edge``)"
                }
              },
              "required": [
                "version"
              ],
              "minProperties": 1
            },
            "local_repo_base_url": {
              "type": "string",
              "description": "The base URL of an Alpine repository containing unofficial packages"
            }
          }
        }
      }
    },
    "cc_apt_configure": {
      "properties": {
        "apt": {
          "type": "object",
          "minProperties": 1,
          "additionalProperties": false,
          "properties": {
            "preserve_sources_list": {
              "type": "boolean",
              "default": false,
              "description": "By default, cloud-init will generate a new sources list in ``/etc/apt/sources.list.d`` based on any changes specified in cloud config. To disable this behavior and preserve the sources list from the pristine image, set ``preserve_sources_list`` to ``true``.\n\nThe ``preserve_sources_list`` option overrides all other config keys that would alter ``sources.list`` or ``sources.list.d``, **except** for additional sources to be added to ``sources.list.d``."
            },
            "disable_suites": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "minItems": 1,
              "uniqueItems": true,
              "description": "Entries in the sources list can be disabled using ``disable_suites``, which takes a list of suites to be disabled. If the string ``$RELEASE`` is present in a suite in the ``disable_suites`` list, it will be replaced with the release name. If a suite specified in ``disable_suites`` is not present in ``sources.list`` it will be ignored. For convenience, several aliases are provided for`` disable_suites``:\n\n - ``updates`` => ``$RELEASE-updates``\n - ``backports`` => ``$RELEASE-backports``\n - ``security`` => ``$RELEASE-security``\n - ``proposed`` => ``$RELEASE-proposed``\n - ``release`` => ``$RELEASE``.\n\nWhen a suite is disabled using ``disable_suites``, its entry in ``sources.list`` is not deleted; it is just commented out."
            },
            "primary": {
              "$ref": "#/$defs/apt_configure.mirror",
              "description": "The primary and security archive mirrors can be specified using the ``primary`` and ``security`` keys, respectively. Both the ``primary`` and ``security`` keys take a list of configs, allowing mirrors to be specified on a per-architecture basis. Each config is a dictionary which must have an entry for ``arches``, specifying which architectures that config entry is for. The keyword ``default`` applies to any architecture not explicitly listed. The mirror url can be specified with the ``uri`` key, or a list of mirrors to check can be provided in order, with the first mirror that can be resolved being selected. This allows the same configuration to be used in different environment, with different hosts used for a local APT mirror. If no mirror is provided by ``uri`` or ``search``, ``search_dns`` may be used to search for dns names in the format ``<distro>-mirror`` in each of the following:\n\n - fqdn of this host per cloud metadata,\n - localdomain,\n - domains listed in ``/etc/resolv.conf``.\n\nIf there is a dns entry for ``<distro>-mirror``, then it is assumed that there is a distro mirror at ``http://<distro>-mirror.<domain>/<distro>``. If the ``primary`` key is defined, but not the ``security`` key, then then configuration for ``primary`` is also used for ``security``. If ``search_dns`` is used for the ``security`` key, the search pattern will be ``<distro>-security-mirror``.\n\nEach mirror may also specify a key to import via any of the following optional keys:\n\n - ``keyid``: a key to import via shortid or fingerprint.\n - ``key``: a raw PGP key.\n - ``keyserver``: alternate keyserver to pull ``keyid`` key from.\n\nIf no mirrors are specified, or all lookups fail, then default mirrors defined in the datasource are used. If none are present in the datasource either the following defaults are used:\n\n - ``primary`` => ``http://archive.ubuntu.com/ubuntu``.\n - ``security`` => ``http://security.ubuntu.com/ubuntu``"
            },
            "security": {
              "$ref": "#/$defs/apt_configure.mirror",
              "description": "Please refer to the primary config documentation"
            },
            "add_apt_repo_match": {
              "type": "string",
              "default": "^[\\w-]+:\\w",
              "description": "All source entries in ``apt-sources`` that match regex in ``add_apt_repo_match`` will be added to the system using ``add-apt-repository``. If ``add_apt_repo_match`` is not specified, it defaults to ``^[\\w-]+:\\w``"
            },
            "debconf_selections": {
              "type": "object",
              "minProperties": 1,
              "additionalProperties": false,
              "patternProperties": {
                "^.+$": {
                  "type": "string"
                }
              },
              "description": "Debconf additional configurations can be specified as a dictionary under the ``debconf_selections`` config key, with each key in the dict representing a different set of configurations. The value of each key must be a string containing all the debconf configurations that must be applied. We will bundle all of the values and pass them to ``debconf-set-selections``. Therefore, each value line must be a valid entry for ``debconf-set-selections``, meaning that they must possess for distinct fields:\n\n``pkgname question type answer``\n\nWhere:\n\n - ``pkgname`` is the name of the package.\n - ``question`` the name of the questions.\n - ``type`` is the type of question.\n - ``answer`` is the value used to answer the question.\n\nFor example: ``ippackage ippackage/ip string 127.0.01``"
            },
            "sources_list": {
              "type": "string",
              "description": "Specifies a custom template for rendering ``sources.list`` . If no ``sources_list`` template is given, cloud-init will use sane default. Within this template, the following strings will be replaced with the appropriate values:\n\n - ``$MIRROR``\n - ``$RELEASE``\n - ``$PRIMARY``\n - ``$SECURITY``\n - ``$KEY_FILE``"
            },
            "conf": {
              "type": "string",
              "description": "Specify configuration for apt, such as proxy configuration. This configuration is specified as a string. For multiline APT configuration, make sure to follow yaml syntax."
            },
            "https_proxy": {
              "type": "string",
              "description": "More convenient way to specify https APT proxy. https proxy url is specified in the format ``https://[[user][:pass]@]host[:port]/``."
            },
            "http_proxy": {
              "type": "string",
              "description": "More convenient way to specify http APT proxy. http proxy url is specified in the format ``http://[[user][:pass]@]host[:port]/``."
            },
            "proxy": {
              "type": "string",
              "description": "Alias for defining a http APT proxy."
            },
            "ftp_proxy": {
              "type": "string",
              "description": "More convenient way to specify ftp APT proxy. ftp proxy url is specified in the format ``ftp://[[user][:pass]@]host[:port]/``."
            },
            "sources": {
              "type": "object",
              "additionalProperties": false,
              "patternProperties": {
                "^.+$": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "source": {
                      "type": "string"
                    },
                    "keyid": {
                      "type": "string"
                    },
                    "key": {
                      "type": "string"
                    },
                    "keyserver": {
                      "type": "string"
                    },
                    "filename": {
                      "type": "string"
                    },
                    "append": {
                      "type": "boolean",
                      "default": true
                    }
                  },
                  "minProperties": 1
                }
              },
              "description": "Source list entries can be specified as a dictionary under the ``sources`` config key, with each key in the dict representing a different source file. The key of each source entry will be used as an id that can be referenced in other config entries, as well as the filename for the source's configuration under ``/etc/apt/sources.list.d``. If the name does not end with ``.list``, it will be appended. If there is no configuration for a key in ``sources``, no file will be written, but the key may still be referred to as an id in other ``sources`` entries.\n\nEach entry under ``sources`` is a dictionary which may contain any of the following optional keys:\n - ``source``: a sources.list entry (some variable replacements apply).\n - ``keyid``: a key to import via shortid or fingerprint.\n - ``key``: a raw PGP key.\n - ``keyserver``: alternate keyserver to pull ``keyid`` key from.\n - ``filename``: specify the name of the list file.\n - ``append``: If ``true``, append to sources file, otherwise overwrite it. Default: ``true``.\n\nThe ``source`` key supports variable replacements for the following strings:\n\n - ``$MIRROR``\n - ``$PRIMARY``\n - ``$SECURITY``\n - ``$RELEASE``\n - ``$KEY_FILE``"
            }
          }
        }
      }
    },
    "cc_apt_pipelining": {
      "type": "object",
      "properties": {
        "apt_pipelining": {
          "oneOf": [
            {
              "type": "integer"
            },
            {
              "type": "boolean"
            },
            {
              "type": "string",
              "enum": [
                "none",
                "unchanged",
                "os"
              ]
            }
          ]
        }
      }
    },
    "cc_bootcmd": {
      "type": "object",
      "properties": {
        "bootcmd": {
          "type": "array",
          "items": {
            "oneOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "string"
              }
            ]
          },
          "additionalItems": false,
          "minItems": 1
        }
      }
    },
    "cc_byobu": {
      "type": "object",
      "properties": {
        "byobu_by_default": {
          "type": "string",
          "enum": [
            "enable-system",
            "enable-user",
            "disable-system",
            "disable-user",
            "enable",
            "disable",
            "user",
            "system"
          ]
        }
      }
    },
    "cc_ca_certs": {
      "type": "object",
      "properties": {
        "ca_certs": {
          "$ref": "#/$defs/ca_certs.properties"
        },
        "ca-certs": {
          "allOf": [
            {
              "$ref": "#/$defs/ca_certs.properties"
            },
            {
              "deprecated": true,
              "deprecated_version": "22.3",
              "deprecated_description": "Use ``ca_certs`` instead."
            }
          ]
        }
      }
    },
    "cc_chef": {
      "type": "object",
      "properties": {
        "chef": {
          "type": "object",
          "minProperties": 1,
          "additionalProperties": false,
          "properties": {
            "directories": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "minItems": 1,
              "uniqueItems": true,
              "description": "Create the necessary directories for chef to run. By default, it creates the following directories:\n\n - ``/etc/chef``\n - ``/var/log/chef``\n - ``/var/lib/chef``\n - ``/var/cache/chef``\n - ``/var/backups/chef``\n - ``/var/run/chef``"
            },
            "validation_cert": {
              "type": "string",
              "description": "Optional string to be written to file validation_key. Special value ``system`` means set use existing file."
            },
            "validation_key": {
              "type": "string",
              "default": "/etc/chef/validation.pem",
              "description": "Optional path for validation_cert. default to ``/etc/chef/validation.pem``"
            },
            "firstboot_path": {
              "type": "string",
              "default": "/etc/chef/firstboot.json",
              "description": "Path to write run_list and initial_attributes keys that should also be present in this configuration, defaults to ``/etc/chef/firstboot.json``"
            },
            "exec": {
              "type": "boolean",
              "default": false,
              "description": "Set true if we should run or not run chef (defaults to false, unless a gem installed is requested where this will then default to true)."
            },
            "client_key": {
              "type": "string",
              "default": "/etc/chef/client.pem",
              "description": "Optional path for client_cert. Default to ``/etc/chef/client.pem``."
            },
            "encrypted_data_bag_secret": {
              "type": "string",
              "default": null,
              "description": "Specifies the location of the secret key used by chef to encrypt data items. By default, this path is set to null, meaning that chef will have to look at the path ``/etc/chef/encrypted_data_bag_secret`` for it."
            },
            "environment": {
              "type": "string",
              "default": "_default",
              "description": "Specifies which environment chef will use. By default, it will use the ``_default`` configuration."
            },
            "file_backup_path": {
              "type": "string",
              "default": "/var/backups/chef",
              "description": "Specifies the location in which backup files are stored. By default, it uses the ``/var/backups/chef`` location."
            },
            "file_cache_path": {
              "type": "string",
              "default": "/var/cache/chef",
              "description": "Specifies the location in which chef cache files will be saved. By default, it uses the ``/var/cache/chef`` location."
            },
            "json_attribs": {
              "type": "string",
              "default": "/etc/chef/firstboot.json",
              "description": "Specifies the location in which some chef json data is stored. By default, it uses the ``/etc/chef/firstboot.json`` location."
            },
            "log_level": {
              "type": "string",
              "default": ":info",
              "description": "Defines the level of logging to be stored in the log file. By default this value is set to ``:info``."
            },
            "log_location": {
              "type": "string",
              "default": "/var/log/chef/client.log",
              "description": "Specifies the location of the chef lof file. By default, the location is specified at ``/var/log/chef/client.log``."
            },
            "node_name": {
              "type": "string",
              "description": "The name of the node to run. By default, we will use th instance id as the node name."
            },
            "omnibus_url": {
              "type": "string",
              "default": "https://www.chef.io/chef/install.sh",
              "description": "Omnibus URL if chef should be installed through Omnibus. By default, it uses the ``https://www.chef.io/chef/install.sh``."
            },
            "omnibus_url_retries": {
              "type": "integer",
              "default": 5,
              "description": "The number of retries that will be attempted to reach the Omnibus URL. Default is 5."
            },
            "omnibus_version": {
              "type": "string",
              "description": "Optional version string to require for omnibus install."
            },
            "pid_file": {
              "type": "string",
              "default": "/var/run/chef/client.pid",
              "description": "The location in which a process identification number (pid) is saved. By default, it saves in the ``/var/run/chef/client.pid`` location."
            },
            "server_url": {
              "type": "string",
              "description": "The URL for the chef server"
            },
            "show_time": {
              "type": "boolean",
              "default": true,
              "description": "Show time in chef logs"
            },
            "ssl_verify_mode": {
              "type": "string",
              "default": ":verify_none",
              "description": "Set the verify mode for HTTPS requests. We can have two possible values for this parameter:\n\n - ``:verify_none``: No validation of SSL certificates.\n - ``:verify_peer``: Validate all SSL certificates.\n\nBy default, the parameter is set as ``:verify_none``."
            },
            "validation_name": {
              "type": "string",
              "description": "The name of the chef-validator key that Chef Infra Client uses to access the Chef Infra Server during the initial Chef Infra Client run."
            },
            "force_install": {
              "type": "boolean",
              "default": false,
              "description": "If set to ``true``, forces chef installation, even if it is already installed."
            },
            "initial_attributes": {
              "type": "object",
              "items": {
                "type": "string"
              },
              "description": "Specify a list of initial attributes used by the cookbooks."
            },
            "install_type": {
              "type": "string",
              "default": "packages",
              "enum": [
                "packages",
                "gems",
                "omnibus"
              ],
              "description": "The type of installation for chef. It can be one of the following values:\n\n - ``packages``\n - ``gems``\n - ``omnibus``"
            },
            "run_list": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "A run list for a first boot json."
            },
            "chef_license": {
              "type": "string",
              "description": "string that indicates if user accepts or not license related to some of chef products"
            }
          }
        }
      }
    },
    "cc_disable_ec2_metadata": {
      "type": "object",
      "properties": {
        "disable_ec2_metadata": {
          "default": false,
          "description": "Set true to disable IPv4 routes to EC2 metadata. Default: false.",
          "type": "boolean"
        }
      }
    },
    "cc_disk_setup": {
      "type": "object",
      "properties": {
        "device_aliases": {
          "type": "object",
          "additionalProperties": false,
          "patternProperties": {
            "^.+$": {
              "label": "<alias_name>",
              "type": "string",
              "description": "Path to disk to be aliased by this name."
            }
          }
        },
        "disk_setup": {
          "type": "object",
          "additionalProperties": false,
          "patternProperties": {
            "^.+$": {
              "label": "<alias name/path>",
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "table_type": {
                  "type": "string",
                  "default": "mbr",
                  "enum": [
                    "mbr",
                    "gpt"
                  ],
                  "description": "Specifies the partition table type, either ``mbr`` or ``gpt``. Default: ``mbr``."
                },
                "layout": {
                  "default": false,
                  "oneOf": [
                    {
                      "type": "string",
                      "enum": [
                        "remove"
                      ]
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "array",
                            "items": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "minItems": 2,
                            "maxItems": 2
                          }
                        ]
                      }
                    }
                  ],
                  "description": "If set to ``true``, a single partition using all the space on the device will be created. If set to ``false``, no partitions will be created. If set to ``remove``, any existing partition table will be purged. Partitions can be specified by providing a list to ``layout``, where each entry in the list is either a size or a list containing a size and the numerical value for a partition type. The size for partitions is specified in **percentage** of disk space, not in bytes (e.g. a size of 33 would take up 1/3 of the disk space). The partition type defaults to '83' (Linux partition), for other types of partition, such as Linux swap, the type must be passed as part of a list along with the size. Default: ``false``."
                },
                "overwrite": {
                  "type": "boolean",
                  "default": false,
                  "description": "Controls whether this module tries to be safe about writing partition tables or not. If ``overwrite: false`` is set, the device will be checked for a partition table and for a file system and if either is found, the operation will be skipped. If ``overwrite: true`` is set, no checks will be performed. Using ``overwrite: true`` is **dangerous** and can lead to data loss, so double check that the correct device has been specified if using this option. Default: ``false``"
                }
              }
            }
          }
        },
        "fs_setup": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "label": {
                "type": "string",
                "description": "Label for the filesystem."
              },
              "filesystem": {
                "type": "string",
                "description": "Filesystem type to create. E.g., ``ext4`` or ``btrfs``"
              },
              "device": {
                "type": "string",
                "description": "Specified either as a path or as an alias in the format ``<alias name>.<y>`` where ``<y>`` denotes the partition number on the device. If specifying device using the ``<alias name>.<partition number>`` format, the value of ``partition`` will be overwritten."
              },
              "partition": {
                "type": [
                  "string",
                  "integer"
                ],
                "oneOf": [
                  {
                    "type": "string",
                    "enum": [
                      "auto",
                      "any",
                      "none"
                    ]
                  }
                ],
                "description": "The partition can be specified by setting ``partition`` to the desired partition number. The ``partition`` option may also be set to ``auto``, in which this module will search for the existence of a filesystem matching the ``label``, ``filesystem`` and ``device`` of the ``fs_setup`` entry and will skip creating the filesystem if one is found. The ``partition`` option may also be set to ``any``, in which case any filesystem that matches ``filesystem`` and ``device`` will cause this module to skip filesystem creation for the ``fs_setup`` entry, regardless of ``label`` matching or not. To write a filesystem directly to a device, use ``partition: none``. ``partition: none`` will **always** write the filesystem, even when the ``label`` and ``filesystem`` are matched, and ``overwrite`` is ``false``."
              },
              "overwrite": {
                "type": "boolean",
                "description": "If ``true``, overwrite any existing filesystem. Using ``overwrite: true`` for filesystems is **dangerous** and can lead to data loss, so double check the entry in ``fs_setup``. Default: ``false``"
              },
              "replace_fs": {
                "type": "string",
                "description": "Ignored unless ``partition`` is ``auto`` or ``any``. Default ``false``."
              },
              "extra_opts": {
                "type": [
                  "array",
                  "string"
                ],
                "items": {
                  "type": "string"
                },
                "description": "Optional options to pass to the filesystem creation command. Ignored if you using ``cmd`` directly."
              },
              "cmd": {
                "type": [
                  "array",
                  "string"
                ],
                "items": {
                  "type": "string"
                },
                "description": "Optional command to run to create the filesystem. Can include string substitutions of the other ``fs_setup`` config keys. This is only necessary if you need to override the default command."
              }
            }
          }
        }
      }
    },
    "cc_fan": {
      "type": "object",
      "properties": {
        "fan": {
          "type": "object",
          "required": [
            "config"
          ],
          "additionalProperties": false,
          "properties": {
            "config": {
              "type": "string",
              "description": "The fan configuration to use as a single multi-line string"
            },
            "config_path": {
              "type": "string",
              "default": "/etc/network/fan",
              "description": "The path to write the fan configuration to. Default: ``/etc/network/fan``"
            }
          }
        }
      }
    },
    "cc_final_message": {
      "type": "object",
      "properties": {
        "final_message": {
          "type": "string",
          "description": "The message to display at the end of the run"
        }
      }
    },
    "cc_growpart": {
      "type": "object",
      "properties": {
        "growpart": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "mode": {
              "default": "auto",
              "description": "The utility to use for resizing. Default: ``auto``\n\nPossible options:\n\n* ``auto`` - Use any available utility\n\n* ``growpart`` - Use growpart utility\n\n* ``gpart`` - Use BSD gpart utility\n\n* ``off`` - Take no action.",
              "oneOf": [
                {
                  "enum": [
                    "auto",
                    "growpart",
                    "gpart",
                    "off"
                  ]
                },
                {
                  "enum": [
                    false
                  ],
                  "changed": true,
                  "changed_version": "22.3",
                  "changed_description": "Specifying a boolean ``false`` value for ``mode`` is deprecated. Use ``off`` instead."
                }
              ]
            },
            "devices": {
              "type": "array",
              "default": [
                "/"
              ],
              "items": {
                "type": "string"
              },
              "description": "The devices to resize. Each entry can either be the path to the device's mountpoint in the filesystem or a path to the block device in '/dev'. Default: ``[/]``"
            },
            "ignore_growroot_disabled": {
              "type": "boolean",
              "default": false,
              "description": "If ``true``, ignore the presence of ``/etc/growroot-disabled``. If ``false`` and the file exists, then don't resize. Default: ``false``"
            }
          }
        }
      }
    },
    "cc_grub_dpkg": {
      "type": "object",
      "properties": {
        "grub_dpkg": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "enabled": {
              "type": "boolean",
              "default": true,
              "description": "Whether to configure which device is used as the target for grub installation. Default: ``true``"
            },
            "grub-pc/install_devices": {
              "type": "string",
              "description": "Device to use as target for grub installation. If unspecified, ``grub-probe`` of ``/boot`` will be used to find the device"
            },
            "grub-pc/install_devices_empty": {
              "description": "Sets values for ``grub-pc/install_devices_empty``. If unspecified, will be set to ``true`` if ``grub-pc/install_devices`` is empty, otherwise ``false``",
              "oneOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "string",
                  "changed": true,
                  "changed_version": "22.3",
                  "changed_description": "Use a boolean value instead."
                }
              ]
            },
            "grub-efi/install_devices": {
              "type": "string",
              "description": "Partition to use as target for grub installation. If unspecified, ``grub-probe`` of ``/boot/efi`` will be used to find the partition"
            }
          }
        },
        "grub-dpkg": {
          "type": "object",
          "description": "An alias for ``grub_dpkg``",
          "deprecated": true,
          "deprecated_version": "22.2",
          "deprecated_description": "Use ``grub_dpkg`` instead."
        }
      }
    },
    "cc_install_hotplug": {
      "type": "object",
      "properties": {
        "updates": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "network": {
              "type": "object",
              "required": [
                "when"
              ],
              "additionalProperties": false,
              "properties": {
                "when": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "boot-new-instance",
                      "boot-legacy",
                      "boot",
                      "hotplug"
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "cc_keyboard": {
      "type": "object",
      "properties": {
        "keyboard": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "layout": {
              "type": "string",
              "description": "Required. Keyboard layout. Corresponds to XKBLAYOUT."
            },
            "model": {
              "type": "string",
              "default": "pc105",
              "description": "Optional. Keyboard model. Corresponds to XKBMODEL. Default: ``pc105``."
            },
            "variant": {
              "type": "string",
              "description": "Optional. Keyboard variant. Corresponds to XKBVARIANT."
            },
            "options": {
              "type": "string",
              "description": "Optional. Keyboard options. Corresponds to XKBOPTIONS."
            }
          },
          "required": [
            "layout"
          ]
        }
      }
    },
    "cc_keys_to_console": {
      "type": "object",
      "properties": {
        "ssh": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "emit_keys_to_console": {
              "type": "boolean",
              "default": true,
              "description": "Set false to avoid printing SSH keys to system console. Default: ``true``."
            }
          },
          "required": [
            "emit_keys_to_console"
          ]
        },
        "ssh_key_console_blacklist": {
          "type": "array",
          "default": [
            "ssh-dss"
          ],
          "description": "Avoid printing matching SSH key types to the system console.",
          "items": {
            "type": "string"
          },
          "uniqueItems": true
        },
        "ssh_fp_console_blacklist": {
          "type": "array",
          "description": "Avoid printing matching SSH fingerprints to the system console.",
          "items": {
            "type": "string"
          },
          "uniqueItems": true
        }
      }
    },
    "cc_landscape": {
      "type": "object",
      "properties": {
        "landscape": {
          "type": "object",
          "required": [
            "client"
          ],
          "additionalProperties": false,
          "properties": {
            "client": {
              "type": "object",
              "additionalProperties": true,
              "properties": {
                "url": {
                  "type": "string",
                  "default": "https://landscape.canonical.com/message-system",
                  "description": "The Landscape server URL to connect to. Default: ``https://landscape.canonical.com/message-system``."
                },
                "ping_url": {
                  "type": "string",
                  "default": "https://landscape.canonical.com/ping",
                  "description": "The URL to perform lightweight exchange initiation with. Default: ``https://landscape.canonical.com/ping``."
                },
                "data_path": {
                  "type": "string",
                  "default": "/var/lib/landscape/client",
                  "description": "The directory to store data files in. Default: ``/var/lib/land\u2010scape/client/``."
                },
                "log_level": {
                  "type": "string",
                  "default": "info",
                  "enum": [
                    "debug",
                    "info",
                    "warning",
                    "error",
                    "critical"
                  ],
                  "description": "The log level for the client. Default: ``info``."
                },
                "computer_title": {
                  "type": "string",
                  "description": "The title of this computer."
                },
                "account_name": {
                  "type": "string",
                  "description": "The account this computer belongs to."
                },
                "registration_key": {
                  "type": "string",
                  "description": "The account-wide key used for registering clients."
                },
                "tags": {
                  "type": "string",
                  "pattern": "^[-_0-9a-zA-Z]+(,[-_0-9a-zA-Z]+)*$",
                  "description": "Comma separated list of tag names to be sent to the server."
                },
                "http_proxy": {
                  "type": "string",
                  "description": "The URL of the HTTP proxy, if one is needed."
                },
                "https_proxy": {
                  "type": "string",
                  "description": "The URL of the HTTPS proxy, if one is needed."
                }
              }
            }
          }
        }
      }
    },
    "cc_locale": {
      "properties": {
        "locale": {
          "type": "string",
          "description": "The locale to set as the system's locale (e.g. ar_PS)"
        },
        "locale_configfile": {
          "type": "string",
          "description": "The file in which to write the locale configuration (defaults to the distro's default location)"
        }
      }
    },
    "cc_lxd": {
      "type": "object",
      "properties": {
        "lxd": {
          "type": "object",
          "minProperties": 1,
          "additionalProperties": false,
          "properties": {
            "init": {
              "type": "object",
              "additionalProperties": false,
              "description": "LXD init configuration values to provide to `lxd init --auto` command. Can not be combined with ``lxd.preseed``.",
              "properties": {
                "network_address": {
                  "type": "string",
                  "description": "IP address for LXD to listen on"
                },
                "network_port": {
                  "type": "integer",
                  "description": "Network port to bind LXD to."
                },
                "storage_backend": {
                  "type": "string",
                  "enum": [
                    "zfs",
                    "dir",
                    "lvm",
                    "btrfs"
                  ],
                  "default": "dir",
                  "description": "Storage backend to use. Default: ``dir``."
                },
                "storage_create_device": {
                  "type": "string",
                  "description": "Setup device based storage using DEVICE"
                },
                "storage_create_loop": {
                  "type": "integer",
                  "description": "Setup loop based storage with SIZE in GB"
                },
                "storage_pool": {
                  "type": "string",
                  "description": "Name of storage pool to use or create"
                },
                "trust_password": {
                  "type": "string",
                  "description": "The password required to add new clients"
                }
              }
            },
            "bridge": {
              "type": "object",
              "required": [
                "mode"
              ],
              "additionalProperties": false,
              "description": "LXD bridge configuration provided to setup the host lxd bridge. Can not be combined with ``lxd.preseed``.",
              "properties": {
                "mode": {
                  "type": "string",
                  "description": "Whether to setup LXD bridge, use an existing bridge by ``name`` or create a new bridge. `none` will avoid bridge setup, `existing` will configure lxd to use the bring matching ``name`` and `new` will create a new bridge.",
                  "enum": [
                    "none",
                    "existing",
                    "new"
                  ]
                },
                "name": {
                  "type": "string",
                  "description": "Name of the LXD network bridge to attach or create. Default: ``lxdbr0``.",
                  "default": "lxdbr0"
                },
                "mtu": {
                  "type": "integer",
                  "description": "Bridge MTU, defaults to LXD's default value",
                  "default": -1,
                  "minimum": -1
                },
                "ipv4_address": {
                  "type": "string",
                  "description": "IPv4 address for the bridge. If set, ``ipv4_netmask`` key required."
                },
                "ipv4_netmask": {
                  "type": "integer",
                  "description": "Prefix length for the ``ipv4_address`` key. Required when ``ipv4_address`` is set."
                },
                "ipv4_dhcp_first": {
                  "type": "string",
                  "description": "First IPv4 address of the DHCP range for the network created. This value will combined with ``ipv4_dhcp_last`` key to set LXC ``ipv4.dhcp.ranges``."
                },
                "ipv4_dhcp_last": {
                  "type": "string",
                  "description": "Last IPv4 address of the DHCP range for the network created. This value will combined with ``ipv4_dhcp_first`` key to set LXC ``ipv4.dhcp.ranges``."
                },
                "ipv4_dhcp_leases": {
                  "type": "integer",
                  "description": "Number of DHCP leases to allocate within the range. Automatically calculated based on `ipv4_dhcp_first` and `ipv4_dchp_last` when unset."
                },
                "ipv4_nat": {
                  "type": "boolean",
                  "default": false,
                  "description": "Set ``true`` to NAT the IPv4 traffic allowing for a routed IPv4 network. Default: ``false``."
                },
                "ipv6_address": {
                  "type": "string",
                  "description": "IPv6 address for the bridge (CIDR notation). When set, ``ipv6_netmask`` key is required. When absent, no IPv6 will be configured."
                },
                "ipv6_netmask": {
                  "type": "integer",
                  "description": "Prefix length for ``ipv6_address`` provided. Required when ``ipv6_address`` is set."
                },
                "ipv6_nat": {
                  "type": "boolean",
                  "default": false,
                  "description": "Whether to NAT. Default: ``false``."
                },
                "domain": {
                  "type": "string",
                  "description": "Domain to advertise to DHCP clients and use for DNS resolution."
                }
              }
            },
            "preseed": {
              "type": "string",
              "description": "Opaque LXD preseed YAML config passed via stdin to the command: lxd init --preseed. See: https://linuxcontainers.org/lxd/docs/master/preseed/ or lxd init --dump for viable config. Can not be combined with either ``lxd.init`` or ``lxd.bridge``."
            }
          }
        }
      }
    },
    "cc_mcollective": {
      "type": "object",
      "properties": {
        "mcollective": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "conf": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "public-cert": {
                  "type": "string",
                  "description": "Optional value of server public certificate which will be written to ``/etc/mcollective/ssl/server-public.pem``"
                },
                "private-cert": {
                  "type": "string",
                  "description": "Optional value of server private certificate which will be written to ``/etc/mcollective/ssl/server-private.pem``"
                }
              },
              "patternProperties": {
                "^.+$": {
                  "description": "Optional config key: value pairs which will be appended to ``/etc/mcollective/server.cfg``.",
                  "oneOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "integer"
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "cc_migrator": {
      "type": "object",
      "properties": {
        "migrate": {
          "type": "boolean",
          "default": true,
          "description": "Whether to migrate legacy cloud-init semaphores to new format. Default: ``true``"
        }
      }
    },
    "cc_mounts": {
      "type": "object",
      "properties": {
        "mounts": {
          "type": "array",
          "items": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "maxItems": 6
          },
          "description": "List of lists. Each inner list entry is a list of ``/etc/fstab`` mount declarations of the format: [ fs_spec, fs_file, fs_vfstype, fs_mntops, fs-freq, fs_passno ]. A mount declaration with less than 6 items will get remaining values from ``mount_default_fields``. A mount declaration with only `fs_spec` and no `fs_file` mountpoint will be skipped.",
          "minItems": 1
        },
        "mount_default_fields": {
          "type": "array",
          "description": "Default mount configuration for any mount entry with less than 6 options provided. When specified, 6 items are required and represent ``/etc/fstab`` entries. Default: ``defaults,nofail,x-systemd.requires=cloud-init.service,_netdev``",
          "default": [
            null,
            null,
            "auto",
            "defaults,nofail,x-systemd.requires=cloud-init.service",
            "0",
            "2"
          ],
          "items": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "minItems": 6,
          "maxItems": 6
        },
        "swap": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "filename": {
              "type": "string",
              "description": "Path to the swap file to create"
            },
            "size": {
              "description": "The size in bytes of the swap file, 'auto' or a human-readable size abbreviation of the format <float_size><units> where units are one of B, K, M, G or T. **WARNING: Attempts to use IEC prefixes in your configuration prior to cloud-init version 23.1 will result in unexpected behavior. SI prefixes names (KB, MB) are required on pre-23.1 cloud-init, however IEC values are used. In summary, assume 1KB == 1024B, not 1000B**",
              "oneOf": [
                {
                  "enum": [
                    "auto"
                  ]
                },
                {
                  "type": "integer"
                },
                {
                  "type": "string",
                  "pattern": "^([0-9]+)?\\.?[0-9]+[BKMGT]$"
                }
              ]
            },
            "maxsize": {
              "oneOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string",
                  "pattern": "^([0-9]+)?\\.?[0-9]+[BKMGT]$"
                }
              ],
              "description": "The maxsize in bytes of the swap file"
            }
          }
        }
      }
    },
    "cc_ntp": {
      "type": "object",
      "properties": {
        "ntp": {
          "type": [
            "null",
            "object"
          ],
          "additionalProperties": false,
          "properties": {
            "pools": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "hostname"
              },
              "uniqueItems": true,
              "description": "List of ntp pools. If both pools and servers are\nempty, 4 default pool servers will be provided of\nthe format ``{0-3}.{distro}.pool.ntp.org``. NOTE:\nfor Alpine Linux when using the Busybox NTP client\nthis setting will be ignored due to the limited\nfunctionality of Busybox's ntpd."
            },
            "servers": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "hostname"
              },
              "uniqueItems": true,
              "description": "List of ntp servers. If both pools and servers are\nempty, 4 default pool servers will be provided with\nthe format ``{0-3}.{distro}.pool.ntp.org``."
            },
            "ntp_client": {
              "type": "string",
              "default": "auto",
              "description": "Name of an NTP client to use to configure system NTP.\nWhen unprovided or 'auto' the default client preferred\nby the distribution will be used. The following\nbuilt-in client names can be used to override existing\nconfiguration defaults: chrony, ntp, openntpd,\nntpdate, systemd-timesyncd."
            },
            "enabled": {
              "type": "boolean",
              "default": true,
              "description": "Attempt to enable ntp clients if set to True.  If set\nto False, ntp client will not be configured or\ninstalled"
            },
            "config": {
              "description": "Configuration settings or overrides for the\n``ntp_client`` specified.",
              "type": "object",
              "minProperties": 1,
              "additionalProperties": false,
              "properties": {
                "confpath": {
                  "type": "string",
                  "description": "The path to where the ``ntp_client``\nconfiguration is written."
                },
                "check_exe": {
                  "type": "string",
                  "description": "The executable name for the ``ntp_client``.\nFor example, ntp service ``check_exe`` is\n'ntpd' because it runs the ntpd binary."
                },
                "packages": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "uniqueItems": true,
                  "description": "List of packages needed to be installed for the\nselected ``ntp_client``."
                },
                "service_name": {
                  "type": "string",
                  "description": "The systemd or sysvinit service name used to\nstart and stop the ``ntp_client``\nservice."
                },
                "template": {
                  "type": "string",
                  "description": "Inline template allowing users to define their\nown ``ntp_client`` configuration template.\nThe value must start with '## template:jinja'\nto enable use of templating support.\n"
                }
              }
            }
          }
        }
      }
    },
    "cc_package_update_upgrade_install": {
      "type": "object",
      "properties": {
        "packages": {
          "type": "array",
          "description": "A list of packages to install. Each entry in the list can be either a package name or a list with two entries, the first being the package name and the second being the specific package version to install.",
          "items": {
            "oneOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "minItems": 2,
                "maxItems": 2
              },
              {
                "type": "string"
              }
            ]
          },
          "minItems": 1
        },
        "package_update": {
          "type": "boolean",
          "default": false,
          "description": "Set ``true`` to update packages. Happens before upgrade or install. Default: ``false``"
        },
        "package_upgrade": {
          "type": "boolean",
          "default": false,
          "description": "Set ``true`` to upgrade packages. Happens before install. Default: ``false``"
        },
        "package_reboot_if_required": {
          "type": "boolean",
          "default": false,
          "description": "Set ``true`` to reboot the system if required by presence of `/var/run/reboot-required`. Default: ``false``"
        },
        "apt_update": {
          "type": "boolean",
          "default": false,
          "description": "Default: ``false``.",
          "deprecated": true,
          "deprecated_version": "22.2",
          "deprecated_description": "Use ``package_update`` instead."
        },
        "apt_upgrade": {
          "type": "boolean",
          "default": false,
          "description": "Default: ``false``.",
          "deprecated": true,
          "deprecated_version": "22.2",
          "deprecated_description": "Use ``package_upgrade`` instead."
        },
        "apt_reboot_if_required": {
          "type": "boolean",
          "default": false,
          "description": "Default: ``false``.",
          "deprecated": true,
          "deprecated_version": "22.2",
          "deprecated_description": "Use ``package_reboot_if_required`` instead."
        }
      }
    },
    "cc_phone_home": {
      "type": "object",
      "properties": {
        "phone_home": {
          "type": "object",
          "required": [
            "url"
          ],
          "additionalProperties": false,
          "properties": {
            "url": {
              "type": "string",
              "format": "uri",
              "description": "The URL to send the phone home data to."
            },
            "post": {
              "description": "A list of keys to post or ``all``. Default: ``all``",
              "oneOf": [
                {
                  "enum": [
                    "all"
                  ]
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "pub_key_dsa",
                      "pub_key_rsa",
                      "pub_key_ecdsa",
                      "pub_key_ed25519",
                      "instance_id",
                      "hostname",
                      "fqdn"
                    ]
                  }
                }
              ]
            },
            "tries": {
              "type": "integer",
              "description": "The number of times to try sending the phone home data. Default: ``10``",
              "default": 10
            }
          }
        }
      }
    },
    "cc_power_state_change": {
      "type": "object",
      "properties": {
        "power_state": {
          "type": "object",
          "required": [
            "mode"
          ],
          "additionalProperties": false,
          "properties": {
            "delay": {
              "description": "Time in minutes to delay after cloud-init has finished. Can be ``now`` or an integer specifying the number of minutes to delay. Default: ``now``",
              "default": "now",
              "oneOf": [
                {
                  "type": "integer",
                  "minimum": 0
                },
                {
                  "type": "string",
                  "pattern": "^\\+?[0-9]+$",
                  "changed": true,
                  "changed_version": "22.3",
                  "changed_description": "Use of type string for this value is deprecated. Use ``now`` or integer type."
                },
                {
                  "enum": [
                    "now"
                  ]
                }
              ]
            },
            "mode": {
              "description": "Must be one of ``poweroff``, ``halt``, or ``reboot``.",
              "type": "string",
              "enum": [
                "poweroff",
                "reboot",
                "halt"
              ]
            },
            "message": {
              "description": "Optional message to display to the user when the system is powering off or rebooting.",
              "type": "string"
            },
            "timeout": {
              "description": "Time in seconds to wait for the cloud-init process to finish before executing shutdown. Default: ``30``",
              "type": "integer",
              "default": 30
            },
            "condition": {
              "description": "Apply state change only if condition is met. May be boolean true (always met), false (never met), or a command string or list to be executed. For command formatting, see the documentation for ``cc_runcmd``. If exit code is 0, condition is met, otherwise not. Default: ``true``",
              "default": true,
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "array"
                }
              ]
            }
          }
        }
      }
    },
    "cc_puppet": {
      "type": "object",
      "properties": {
        "puppet": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "install": {
              "type": "boolean",
              "default": true,
              "description": "Whether or not to install puppet. Setting to ``false`` will result in an error if puppet is not already present on the system. Default: ``true``"
            },
            "version": {
              "type": "string",
              "description": "Optional version to pass to the installer script or package manager. If unset, the latest version from the repos will be installed."
            },
            "install_type": {
              "type": "string",
              "description": "Valid values are ``packages`` and ``aio``. Agent packages from the puppetlabs repositories can be installed by setting ``aio``. Based on this setting, the default config/SSL/CSR paths will be adjusted accordingly. Default: ``packages``",
              "enum": [
                "packages",
                "aio"
              ],
              "default": "packages"
            },
            "collection": {
              "type": "string",
              "description": "Puppet collection to install if ``install_type`` is ``aio``. This can be set to one of ``puppet`` (rolling release), ``puppet6``, ``puppet7`` (or their nightly counterparts) in order to install specific release streams."
            },
            "aio_install_url": {
              "type": "string",
              "description": "If ``install_type`` is ``aio``, change the url of the install script."
            },
            "cleanup": {
              "type": "boolean",
              "default": true,
              "description": "Whether to remove the puppetlabs repo after installation if ``install_type`` is ``aio`` Default: ``true``"
            },
            "conf_file": {
              "type": "string",
              "description": "The path to the puppet config file. Default depends on ``install_type``"
            },
            "ssl_dir": {
              "type": "string",
              "description": "The path to the puppet SSL directory. Default depends on ``install_type``"
            },
            "csr_attributes_path": {
              "type": "string",
              "description": "The path to the puppet csr attributes file. Default depends on ``install_type``"
            },
            "package_name": {
              "type": "string",
              "description": "Name of the package to install if ``install_type`` is ``packages``. Default: ``puppet``"
            },
            "exec": {
              "type": "boolean",
              "default": false,
              "description": "Whether or not to run puppet after configuration finishes. A single manual run can be triggered by setting ``exec`` to ``true``, and additional arguments can be passed to ``puppet agent`` via the ``exec_args`` key (by default the agent will execute with the ``--test`` flag). Default: ``false``"
            },
            "exec_args": {
              "type": "array",
              "description": "A list of arguments to pass to 'puppet agent' if 'exec' is true Default: ``['--test']``",
              "items": {
                "type": "string"
              }
            },
            "start_service": {
              "type": "boolean",
              "default": true,
              "description": "By default, the puppet service will be automatically enabled after installation and set to automatically start on boot. To override this in favor of manual puppet execution set ``start_service`` to ``false``"
            },
            "conf": {
              "type": "object",
              "description": "Every key present in the conf object will be added to puppet.conf. As such, section names should be one of: ``main``, ``server``, ``agent`` or ``user`` and keys should be valid puppet configuration options. The configuration is specified as a dictionary containing high-level ``<section>`` keys and lists of ``<key>=<value>`` pairs within each section. The ``certname`` key supports string substitutions for ``%i`` and ``%f``, corresponding to the instance id and fqdn of the machine respectively.\n\n``ca_cert`` is a special case. It won't be added to puppet.conf. It holds the puppetserver certificate in pem format. It should be a multi-line string (using the | yaml notation for multi-line strings).",
              "additionalProperties": false,
              "properties": {
                "main": {
                  "type": "object"
                },
                "server": {
                  "type": "object"
                },
                "agent": {
                  "type": "object"
                },
                "user": {
                  "type": "object"
                },
                "ca_cert": {
                  "type": "string"
                }
              }
            },
            "csr_attributes": {
              "type": "object",
              "description": "create a ``csr_attributes.yaml`` file for CSR attributes and certificate extension requests. See https://puppet.com/docs/puppet/latest/config_file_csr_attributes.html",
              "additionalProperties": false,
              "properties": {
                "custom_attributes": {
                  "type": "object"
                },
                "extension_requests": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "cc_resizefs": {
      "type": "object",
      "properties": {
        "resize_rootfs": {
          "enum": [
            true,
            false,
            "noblock"
          ],
          "description": "Whether to resize the root partition. ``noblock`` will resize in the background. Default: ``true``"
        }
      }
    },
    "cc_resolv_conf": {
      "type": "object",
      "properties": {
        "manage_resolv_conf": {
          "type": "boolean",
          "default": false,
          "description": "Whether to manage the resolv.conf file. ``resolv_conf`` block will be ignored unless this is set to ``true``. Default: ``false``"
        },
        "resolv_conf": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "nameservers": {
              "type": "array",
              "description": "A list of nameservers to use to be added as ``nameserver`` lines"
            },
            "searchdomains": {
              "type": "array",
              "description": "A list of domains to be added ``search`` line"
            },
            "domain": {
              "type": "string",
              "description": "The domain to be added as ``domain`` line"
            },
            "sortlist": {
              "type": "array",
              "description": "A list of IP addresses to be added to ``sortlist`` line"
            },
            "options": {
              "type": "object",
              "description": "Key/value pairs of options to go under ``options`` heading. A unary option should be specified as ``true``"
            }
          }
        }
      }
    },
    "cc_rh_subscription": {
      "type": "object",
      "properties": {
        "rh_subscription": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "username": {
              "type": "string",
              "description": "The username to use. Must be used with password. Should not be used with ``activation-key`` or ``org``"
            },
            "password": {
              "type": "string",
              "description": "The password to use. Must be used with username. Should not be used with ``activation-key`` or ``org``"
            },
            "activation-key": {
              "type": "string",
              "description": "The activation key to use. Must be used with ``org``. Should not be used with ``username`` or ``password``"
            },
            "org": {
              "type": "integer",
              "description": "The organization number to use. Must be used with ``activation-key``. Should not be used with ``username`` or ``password``"
            },
            "auto-attach": {
              "type": "boolean",
              "description": "Whether to attach subscriptions automatically"
            },
            "service-level": {
              "type": "string",
              "description": "The service level to use when subscribing to RH repositories. ``auto-attach`` must be true for this to be used"
            },
            "add-pool": {
              "type": "array",
              "description": "A list of pools ids add to the subscription",
              "items": {
                "type": "string"
              }
            },
            "enable-repo": {
              "type": "array",
              "description": "A list of repositories to enable",
              "items": {
                "type": "string"
              }
            },
            "disable-repo": {
              "type": "array",
              "description": "A list of repositories to disable",
              "items": {
                "type": "string"
              }
            },
            "rhsm-baseurl": {
              "type": "string",
              "description": "Sets the baseurl in ``/etc/rhsm/rhsm.conf``"
            },
            "server-hostname": {
              "type": "string",
              "description": "Sets the serverurl in ``/etc/rhsm/rhsm.conf``"
            }
          }
        }
      }
    },
    "cc_rsyslog": {
      "type": "object",
      "properties": {
        "rsyslog": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "config_dir": {
              "type": "string",
              "description": "The directory where rsyslog configuration files will be written. Default: ``/etc/rsyslog.d``"
            },
            "config_filename": {
              "type": "string",
              "description": "The name of the rsyslog configuration file. Default: ``20-cloud-config.conf``"
            },
            "configs": {
              "type": "array",
              "description": "Each entry in ``configs`` is either a string or an object. Each config entry contains a configuration string and a file to write it to. For config entries that are an object, ``filename`` sets the target filename and ``content`` specifies the config string to write. For config entries that are only a string, the string is used as the config string to write. If the filename to write the config to is not specified, the value of the ``config_filename`` key is used. A file with the selected filename will be written inside the directory specified by ``config_dir``.",
              "items": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "object",
                    "required": [
                      "content"
                    ],
                    "additionalProperties": false,
                    "properties": {
                      "filename": {
                        "type": "string"
                      },
                      "content": {
                        "type": "string"
                      }
                    }
                  }
                ]
              }
            },
            "remotes": {
              "type": "object",
              "description": "Each key is the name for an rsyslog remote entry. Each value holds the contents of the remote config for rsyslog. The config consists of the following parts:\n\n- filter for log messages (defaults to ``*.*``)\n\n- optional leading ``@`` or ``@@``, indicating udp and tcp respectively (defaults to ``@``, for udp)\n\n- ipv4 or ipv6 hostname or address. ipv6 addresses must be in ``[::1]`` format, (e.g. ``@[fd00::1]:514``)\n\n- optional port number (defaults to ``514``)\n\nThis module will provide sane defaults for any part of the remote entry that is not specified, so in most cases remote hosts can be specified just using ``<name>: <address>``."
            },
            "service_reload_command": {
              "description": "The command to use to reload the rsyslog service after the config has been updated. If this is set to ``auto``, then an appropriate command for the distro will be used. This is the default behavior. To manually set the command, use a list of command args (e.g. ``[systemctl, restart, rsyslog]``).",
              "oneOf": [
                {
                  "enum": [
                    "auto"
                  ]
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          }
        }
      }
    },
    "cc_runcmd": {
      "type": "object",
      "properties": {
        "runcmd": {
          "type": "array",
          "items": {
            "oneOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "minItems": 1
        }
      }
    },
    "cc_salt_minion": {
      "type": "object",
      "properties": {
        "salt_minion": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "pkg_name": {
              "type": "string",
              "description": "Package name to install. Default: ``salt-minion``"
            },
            "service_name": {
              "type": "string",
              "description": "Service name to enable. Default: ``salt-minion``"
            },
            "config_dir": {
              "type": "string",
              "description": "Directory to write config files to. Default: ``/etc/salt``"
            },
            "conf": {
              "type": "object",
              "description": "Configuration to be written to `config_dir`/minion"
            },
            "grains": {
              "type": "object",
              "description": "Configuration to be written to `config_dir`/grains"
            },
            "public_key": {
              "type": "string",
              "description": "Public key to be used by the salt minion"
            },
            "private_key": {
              "type": "string",
              "description": "Private key to be used by salt minion"
            },
            "pki_dir": {
              "type": "string",
              "description": "Directory to write key files. Default: `config_dir`/pki/minion"
            }
          }
        }
      }
    },
    "cc_scripts_vendor": {
      "type": "object",
      "properties": {
        "vendor_data": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "enabled": {
              "description": "Whether vendor data is enabled or not. Default: ``true``",
              "oneOf": [
                {
                  "type": "boolean",
                  "default": true
                },
                {
                  "type": "string",
                  "deprecated": true,
                  "deprecated_version": "22.3",
                  "deprecated_description": "Use of type string for this value is deprecated. Use a boolean instead."
                }
              ]
            },
            "prefix": {
              "type": [
                "array",
                "string"
              ],
              "items": {
                "type": [
                  "string",
                  "integer"
                ]
              },
              "description": "The command to run before any vendor scripts. Its primary use case is for profiling a script, not to prevent its run"
            }
          }
        }
      }
    },
    "cc_seed_random": {
      "type": "object",
      "properties": {
        "random_seed": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "file": {
              "type": "string",
              "default": "/dev/urandom",
              "description": "File to write random data to. Default: ``/dev/urandom``"
            },
            "data": {
              "type": "string",
              "description": "This data will be written to ``file`` before data from the datasource. When using a multiline value or specifying binary data, be sure to follow yaml syntax and use the ``|`` and ``!binary`` yaml format specifiers when appropriate"
            },
            "encoding": {
              "type": "string",
              "default": "raw",
              "enum": [
                "raw",
                "base64",
                "b64",
                "gzip",
                "gz"
              ],
              "description": "Used to decode ``data`` provided. Allowed values are ``raw``, ``base64``, ``b64``, ``gzip``, or ``gz``.  Default: ``raw``"
            },
            "command": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Execute this command to seed random. The command will have RANDOM_SEED_FILE in its environment set to the value of ``file`` above."
            },
            "command_required": {
              "type": "boolean",
              "default": false,
              "description": "If true, and ``command`` is not available to be run then an exception is raised and cloud-init will record failure. Otherwise, only debug error is mentioned. Default: ``false``"
            }
          }
        }
      }
    },
    "cc_set_hostname": {
      "type": "object",
      "properties": {
        "preserve_hostname": {
          "type": "boolean",
          "default": false,
          "description": "If true, the hostname will not be changed. Default: ``false``"
        },
        "hostname": {
          "type": "string",
          "description": "The hostname to set"
        },
        "fqdn": {
          "type": "string",
          "description": "The fully qualified domain name to set"
        },
        "prefer_fqdn_over_hostname": {
          "type": "boolean",
          "description": "If true, the fqdn will be used if it is set. If false, the hostname will be used. If unset, the result is distro-dependent"
        }
      }
    },
    "cc_set_passwords": {
      "type": "object",
      "properties": {
        "ssh_pwauth": {
          "oneOf": [
            {
              "type": "boolean"
            },
            {
              "type": "string",
              "changed": true,
              "changed_version": "22.3",
              "changed_description": "Use of non-boolean values for this field is deprecated."
            }
          ],
          "description": "Sets whether or not to accept password authentication. ``true`` will enable password auth. ``false`` will disable. Default is to leave the value unchanged. In order for this config to be applied, SSH may need to be restarted. On systemd systems, this restart will only happen if the SSH service has already been started. On non-systemd systems, a restart will be attempted regardless of the service state."
        },
        "chpasswd": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "expire": {
              "type": "boolean",
              "default": true,
              "description": "Whether to expire all user passwords such that a password will need to be reset on the user's next login. Default: ``true``"
            },
            "users": {
              "description": "This key represents a list of existing users to set passwords for. Each item under users contains the following required keys: ``name`` and ``password`` or in the case of a randomly generated password, ``name`` and ``type``. The ``type`` key has a default value of ``hash``, and may alternatively be set to ``text`` or ``RANDOM``.",
              "type": "array",
              "items": {
                "minItems": 1,
                "type": "object",
                "anyOf": [
                  {
                    "required": [
                      "name",
                      "type"
                    ],
                    "additionalProperties": false,
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "type": {
                        "enum": [
                          "RANDOM"
                        ],
                        "type": "string"
                      }
                    }
                  },
                  {
                    "required": [
                      "name",
                      "password"
                    ],
                    "additionalProperties": false,
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "type": {
                        "enum": [
                          "hash",
                          "text"
                        ],
                        "default": "hash",
                        "type": "string"
                      },
                      "password": {
                        "type": "string"
                      }
                    }
                  }
                ]
              }
            },
            "list": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^.+:.+$"
                  }
                }
              ],
              "minItems": 1,
              "description": "List of ``username:password`` pairs. Each user will have the corresponding password set. A password can be randomly generated by specifying ``RANDOM`` or ``R`` as a user's password. A hashed password, created by a tool like ``mkpasswd``, can be specified. A regex (``r'\\$(1|2a|2y|5|6)(\\$.+){2}'``) is used to determine if a password value should be treated as a hash.",
              "deprecated": true,
              "deprecated_version": "22.2",
              "deprecated_description": "Use ``users`` instead."
            }
          }
        },
        "password": {
          "type": "string",
          "description": "Set the default user's password. Ignored if ``chpasswd`` ``list`` is used"
        }
      }
    },
    "cc_snap": {
      "type": "object",
      "properties": {
        "snap": {
          "type": "object",
          "minProperties": 1,
          "additionalProperties": false,
          "properties": {
            "assertions": {
              "description": "Properly-signed snap assertions which will run before and snap ``commands``.",
              "type": [
                "object",
                "array"
              ],
              "items": {
                "type": "string"
              },
              "additionalItems": false,
              "minItems": 1,
              "minProperties": 1,
              "uniqueItems": true,
              "additionalProperties": {
                "type": "string"
              }
            },
            "commands": {
              "type": [
                "object",
                "array"
              ],
              "description": "Snap commands to run on the target system",
              "items": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                ]
              },
              "additionalItems": false,
              "minItems": 1,
              "minProperties": 1,
              "additionalProperties": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                ]
              }
            }
          }
        }
      }
    },
    "cc_spacewalk": {
      "type": "object",
      "properties": {
        "spacewalk": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "server": {
              "type": "string",
              "description": "The Spacewalk server to use"
            },
            "proxy": {
              "type": "string",
              "description": "The proxy to use when connecting to Spacewalk"
            },
            "activation_key": {
              "type": "string",
              "description": "The activation key to use when registering with Spacewalk"
            }
          }
        }
      }
    },
    "cc_ssh_authkey_fingerprints": {
      "type": "object",
      "properties": {
        "no_ssh_fingerprints": {
          "type": "boolean",
          "default": false,
          "description": "If true, SSH fingerprints will not be written. Default: ``false``"
        },
        "authkey_hash": {
          "type": "string",
          "default": "sha256",
          "description": "The hash type to use when generating SSH fingerprints. Default: ``sha256``"
        }
      }
    },
    "cc_ssh_import_id": {
      "type": "object",
      "properties": {
        "ssh_import_id": {
          "type": "array",
          "items": {
            "type": "string",
            "description": "The SSH public key to import"
          }
        }
      }
    },
    "cc_ssh": {
      "type": "object",
      "properties": {
        "ssh_keys": {
          "type": "object",
          "description": "A dictionary entries for the public and private host keys of each desired key type. Entries in the ``ssh_keys`` config dict should have keys in the format ``<key type>_private``, ``<key type>_public``, and, optionally, ``<key type>_certificate``, e.g. ``rsa_private: <key>``, ``rsa_public: <key>``, and ``rsa_certificate: <key>``. Not all key types have to be specified, ones left unspecified will not be used. If this config option is used, then separate keys will not be automatically generated. In order to specify multiline private host keys and certificates, use yaml multiline syntax.",
          "additionalProperties": false,
          "patternProperties": {
            "^(dsa|ecdsa|ed25519|rsa)_(public|private|certificate)$": {
              "label": "<key_type>",
              "type": "string"
            }
          }
        },
        "ssh_authorized_keys": {
          "type": "array",
          "minItems": 1,
          "description": "The SSH public keys to add ``.ssh/authorized_keys`` in the default user's home directory",
          "items": {
            "type": "string"
          }
        },
        "ssh_deletekeys": {
          "type": "boolean",
          "default": true,
          "description": "Remove host SSH keys. This prevents re-use of a private host key from an image with default host SSH keys. Default: ``true``"
        },
        "ssh_genkeytypes": {
          "type": "array",
          "description": "The SSH key types to generate. Default: ``[rsa, dsa, ecdsa, ed25519]``",
          "default": [
            "dsa",
            "ecdsa",
            "ed25519",
            "rsa"
          ],
          "minItems": 1,
          "items": {
            "type": "string",
            "enum": [
              "dsa",
              "ecdsa",
              "ed25519",
              "rsa"
            ]
          }
        },
        "disable_root": {
          "type": "boolean",
          "default": true,
          "description": "Disable root login. Default: ``true``"
        },
        "disable_root_opts": {
          "type": "string",
          "default": "``no-port-forwarding,no-agent-forwarding,no-X11-forwarding,command=\"echo 'Please login as the user \\\"$USER\\\" rather than the user \\\"$DISABLE_USER\\\".';echo;sleep 10;exit 142\"``",
          "description": "Disable root login options.  If ``disable_root_opts`` is specified and contains the string ``$USER``, it will be replaced with the username of the default user. Default: ``no-port-forwarding,no-agent-forwarding,no-X11-forwarding,command=\"echo 'Please login as the user \\\"$USER\\\" rather than the user \\\"$DISABLE_USER\\\".';echo;sleep 10;exit 142\"``"
        },
        "allow_public_ssh_keys": {
          "type": "boolean",
          "default": true,
          "description": "If ``true``, will import the public SSH keys from the datasource's metadata to the user's ``.ssh/authorized_keys`` file. Default: ``true``"
        },
        "ssh_quiet_keygen": {
          "type": "boolean",
          "default": false,
          "description": "If ``true``, will suppress the output of key generation to the console. Default: ``false``"
        },
        "ssh_publish_hostkeys": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "enabled": {
              "type": "boolean",
              "default": true,
              "description": "If true, will read host keys from ``/etc/ssh/*.pub`` and publish them to the datasource (if supported). Default: ``true``"
            },
            "blacklist": {
              "type": "array",
              "description": "The SSH key types to ignore when publishing. Default: ``[dsa]``",
              "items": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "cc_timezone": {
      "type": "object",
      "properties": {
        "timezone": {
          "type": "string",
          "description": "The timezone to use as represented in /usr/share/zoneinfo"
        }
      }
    },
    "cc_ubuntu_advantage": {
      "type": "object",
      "properties": {
        "ubuntu_advantage": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "enable": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Optional list of ubuntu-advantage services to enable. Any of: cc-eal, cis, esm-infra, fips, fips-updates, livepatch. By default, a given contract token will automatically enable a number of services, use this list to supplement which services should additionally be enabled. Any service unavailable on a given Ubuntu release or unentitled in a given contract will remain disabled. In Ubuntu Pro instances, if this list is given, then only those services will be enabled, ignoring contract defaults. Passing beta services here will cause an error."
            },
            "enable_beta": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Optional list of ubuntu-advantage beta services to enable. By default, a given contract token will automatically enable a number of services, use this list to supplement which services should additionally be enabled. Any service unavailable on a given Ubuntu release or unentitled in a given contract will remain disabled. In Ubuntu Pro instances, if this list is given, then only those services will be enabled, ignoring contract defaults."
            },
            "token": {
              "type": "string",
              "description": "Contract token obtained from https://ubuntu.com/advantage to attach. Required for non-Pro instances."
            },
            "features": {
              "type": "object",
              "description": "Ubuntu Advantage features.",
              "additionalProperties": false,
              "properties": {
                "disable_auto_attach": {
                  "type": "boolean",
                  "description": "Optional boolean for controlling if ua-auto-attach.service (in Ubuntu Pro instances) will be attempted each boot. Default: ``false``",
                  "default": false
                }
              }
            },
            "config": {
              "type": "object",
              "description": "Configuration settings or override Ubuntu Advantage config.",
              "additionalProperties": true,
              "properties": {
                "http_proxy": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uri",
                  "description": "Ubuntu Advantage HTTP Proxy URL or null to unset."
                },
                "https_proxy": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uri",
                  "description": "Ubuntu Advantage HTTPS Proxy URL or null to unset."
                },
                "global_apt_http_proxy": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uri",
                  "description": "HTTP Proxy URL used for all APT repositories on a system or null to unset. Stored at ``/etc/apt/apt.conf.d/90ubuntu-advantage-aptproxy``"
                },
                "global_apt_https_proxy": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uri",
                  "description": "HTTPS Proxy URL used for all APT repositories on a system or null to unset. Stored at ``/etc/apt/apt.conf.d/90ubuntu-advantage-aptproxy``"
                },
                "ua_apt_http_proxy": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uri",
                  "description": "HTTP Proxy URL used only for Ubuntu Advantage APT repositories or null to unset. Stored at ``/etc/apt/apt.conf.d/90ubuntu-advantage-aptproxy``"
                },
                "ua_apt_https_proxy": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uri",
                  "description": "HTTPS Proxy URL used only for Ubuntu Advantage APT repositories or null to unset. Stored at ``/etc/apt/apt.conf.d/90ubuntu-advantage-aptproxy``"
                }
              }
            }
          }
        }
      }
    },
    "cc_ubuntu_drivers": {
      "type": "object",
      "properties": {
        "drivers": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "nvidia": {
              "type": "object",
              "required": [
                "license-accepted"
              ],
              "additionalProperties": false,
              "properties": {
                "license-accepted": {
                  "type": "boolean",
                  "description": "Do you accept the NVIDIA driver license?"
                },
                "version": {
                  "type": "string",
                  "description": "The version of the driver to install (e.g. \"390\", \"410\"). Defaults to the latest version."
                }
              }
            }
          }
        }
      }
    },
    "cc_update_etc_hosts": {
      "type": "object",
      "properties": {
        "manage_etc_hosts": {
          "default": false,
          "description": "Whether to manage ``/etc/hosts`` on the system. If ``true``, render the hosts file using ``/etc/cloud/templates/hosts.tmpl`` replacing ``$hostname`` and ``$fdqn``. If ``localhost``, append a ``127.0.1.1`` entry that resolves from FQDN and hostname every boot. Default: ``false``.",
          "oneOf": [
            {
              "enum": [
                true,
                false,
                "localhost"
              ]
            },
            {
              "enum": [
                "template"
              ],
              "changed_description": "Use of ``template`` is deprecated, use ``true`` instead.",
              "changed": true,
              "changed_version": "22.3"
            }
          ]
        },
        "fqdn": {
          "type": "string",
          "description": "Optional fully qualified domain name to use when updating ``/etc/hosts``. Preferred over ``hostname`` if both are provided. In absence of ``hostname`` and ``fqdn`` in cloud-config, the ``local-hostname`` value will be used from datasource metadata."
        },
        "hostname": {
          "type": "string",
          "description": "Hostname to set when rendering ``/etc/hosts``. If ``fqdn`` is set, the hostname extracted from ``fqdn`` overrides ``hostname``."
        }
      }
    },
    "cc_update_hostname": {
      "type": "object",
      "properties": {
        "preserve_hostname": {
          "type": "boolean",
          "default": false,
          "description": "Do not update system hostname when ``true``. Default: ``false``."
        },
        "prefer_fqdn_over_hostname": {
          "type": "boolean",
          "default": null,
          "description": "By default, it is distro-dependent whether cloud-init uses the short hostname or fully qualified domain name when both ``local-hostname` and ``fqdn`` are both present in instance metadata. When set ``true``, use fully qualified domain name if present as hostname instead of short hostname. When set ``false``, use ``hostname`` config value if present, otherwise fallback to ``fqdn``."
        }
      }
    },
    "cc_users_groups": {
      "type": "object",
      "properties": {
        "groups": {
          "type": [
            "string",
            "object",
            "array"
          ],
          "hidden": [
            "patternProperties"
          ],
          "$ref": "#/$defs/users_groups.groups_by_groupname",
          "items": {
            "type": [
              "string",
              "object"
            ],
            "$ref": "#/$defs/users_groups.groups_by_groupname"
          },
          "minItems": 1
        },
        "user": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "object",
              "$ref": "#/$defs/users_groups.user"
            }
          ],
          "description": "The ``user`` dictionary values override the ``default_user`` configuration from ``/etc/cloud/cloud.cfg``. The `user` dictionary keys supported for the default_user are the same as the ``users`` schema."
        },
        "users": {
          "type": [
            "string",
            "array",
            "object"
          ],
          "items": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "object",
                "$ref": "#/$defs/users_groups.user"
              }
            ]
          }
        }
      }
    },
    "cc_wireguard": {
      "type": "object",
      "properties": {
        "wireguard": {
          "type": [
            "null",
            "object"
          ],
          "properties": {
            "interfaces": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Name of the interface. Typically wgx (example: wg0)"
                  },
                  "config_path": {
                    "type": "string",
                    "description": "Path to configuration file of Wireguard interface"
                  },
                  "content": {
                    "type": "string",
                    "description": "Wireguard interface configuration. Contains key, peer, ..."
                  }
                },
                "additionalProperties": false
              },
              "minItems": 1
            },
            "readinessprobe": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "uniqueItems": true,
              "description": "List of shell commands to be executed as probes."
            }
          },
          "required": [
            "interfaces"
          ],
          "minProperties": 1,
          "additionalProperties": false
        }
      }
    },
    "cc_write_files": {
      "type": "object",
      "properties": {
        "write_files": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "path"
            ],
            "additionalProperties": false,
            "properties": {
              "path": {
                "type": "string",
                "description": "Path of the file to which ``content`` is decoded and written"
              },
              "content": {
                "type": "string",
                "default": "''",
                "description": "Optional content to write to the provided ``path``. When content is present and encoding is not 'text/plain', decode the content prior to writing. Default: ``''``"
              },
              "owner": {
                "type": "string",
                "default": "root:root",
                "description": "Optional owner:group to chown on the file and new directories. Default: ``root:root``"
              },
              "permissions": {
                "type": "string",
                "default": "'0o644'",
                "description": "Optional file permissions to set on ``path`` represented as an octal string '0###'. Default: ``0o644``"
              },
              "encoding": {
                "type": "string",
                "default": "text/plain",
                "enum": [
                  "gz",
                  "gzip",
                  "gz+base64",
                  "gzip+base64",
                  "gz+b64",
                  "gzip+b64",
                  "b64",
                  "base64",
                  "text/plain"
                ],
                "description": "Optional encoding type of the content. Default is ``text/plain`` and no content decoding is performed. Supported encoding types are: gz, gzip, gz+base64, gzip+base64, gz+b64, gzip+b64, b64, base64"
              },
              "append": {
                "type": "boolean",
                "default": false,
                "description": "Whether to append ``content`` to existing file if ``path`` exists. Default: ``false``."
              },
              "defer": {
                "type": "boolean",
                "default": false,
                "description": "Defer writing the file until 'final' stage, after users were created, and packages were installed. Default: ``false``."
              }
            }
          },
          "minItems": 1
        }
      }
    },
    "cc_yum_add_repo": {
      "type": "object",
      "properties": {
        "yum_repo_dir": {
          "type": "string",
          "default": "/etc/yum.repos.d",
          "description": "The repo parts directory where individual yum repo config files will be written. Default: ``/etc/yum.repos.d``"
        },
        "yum_repos": {
          "type": "object",
          "minProperties": 1,
          "additionalProperties": false,
          "patternProperties": {
            "^[0-9a-zA-Z -_]+$": {
              "label": "<repo_name>",
              "type": "object",
              "description": "Object keyed on unique yum repo IDs. The key used will be used to write yum repo config files in ``yum_repo_dir``/<repo_key_id>.repo.",
              "additionalProperties": false,
              "properties": {
                "baseurl": {
                  "type": "string",
                  "format": "uri",
                  "description": "URL to the directory where the yum repository's 'repodata' directory lives"
                },
                "name": {
                  "type": "string",
                  "description": "Optional human-readable name of the yum repo."
                },
                "enabled": {
                  "type": "boolean",
                  "default": true,
                  "description": "Whether to enable the repo. Default: ``true``."
                }
              },
              "patternProperties": {
                "^[0-9a-zA-Z_]+$": {
                  "label": "<yum_config_option>",
                  "oneOf": [
                    {
                      "type": "integer"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "string"
                    }
                  ],
                  "description": "Any supported yum repository configuration options will be written to the yum repo config file. See: man yum.conf"
                }
              },
              "required": [
                "baseurl"
              ]
            }
          }
        }
      }
    },
    "cc_zypper_add_repo": {
      "type": "object",
      "properties": {
        "zypper": {
          "type": "object",
          "minProperties": 1,
          "additionalProperties": true,
          "properties": {
            "repos": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": true,
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "The unique id of the repo, used when writing /etc/zypp/repos.d/<id>.repo."
                  },
                  "baseurl": {
                    "type": "string",
                    "format": "uri",
                    "description": "The base repositoy URL"
                  }
                },
                "required": [
                  "id",
                  "baseurl"
                ]
              },
              "minItems": 1
            },
            "config": {
              "type": "object",
              "description": "Any supported zypo.conf key is written to ``/etc/zypp/zypp.conf``"
            }
          }
        }
      }
    },
    "reporting_config": {
      "type": "object",
      "properties": {
        "reporting": {
          "type": "object",
          "additionalProperties": false,
          "patternProperties": {
            "^.+$": {
              "label": "<arbitrary_name>",
              "type": "object",
              "oneOf": [
                {
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "log"
                      ]
                    },
                    "level": {
                      "type": "string",
                      "enum": [
                        "DEBUG",
                        "INFO",
                        "WARN",
                        "ERROR",
                        "FATAL"
                      ],
                      "default": "DEBUG"
                    }
                  }
                },
                {
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "print"
                      ]
                    }
                  }
                },
                {
                  "additionalProperties": false,
                  "required": [
                    "type",
                    "endpoint"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "webhook"
                      ]
                    },
                    "endpoint": {
                      "type": "string",
                      "format": "uri",
                      "description": "The URL to send the event to."
                    },
                    "consumer_key": {
                      "type": "string",
                      "description": "The consumer key to use for the webhook."
                    },
                    "token_key": {
                      "type": "string",
                      "description": "The token key to use for the webhook."
                    },
                    "token_secret": {
                      "type": "string",
                      "description": "The token secret to use for the webhook."
                    },
                    "consumer_secret": {
                      "type": "string",
                      "description": "The consumer secret to use for the webhook."
                    },
                    "timeout": {
                      "type": "number",
                      "minimum": 0,
                      "description": "The timeout in seconds to wait for a response from the webhook."
                    },
                    "retries": {
                      "type": "integer",
                      "minimum": 0,
                      "description": "The number of times to retry sending the webhook."
                    }
                  }
                },
                {
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "hyperv"
                      ]
                    },
                    "kvp_file_path": {
                      "type": "string",
                      "description": "The path to the KVP file to use for the hyperv reporter.",
                      "default": "/var/lib/hyperv/.kvp_pool_1"
                    },
                    "event_types": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              ]
            }
          }
        }
      }
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/base_config"
    },
    {
      "$ref": "#/$defs/cc_ansible"
    },
    {
      "$ref": "#/$defs/cc_apk_configure"
    },
    {
      "$ref": "#/$defs/cc_apt_configure"
    },
    {
      "$ref": "#/$defs/cc_apt_pipelining"
    },
    {
      "$ref": "#/$defs/cc_ubuntu_autoinstall"
    },
    {
      "$ref": "#/$defs/cc_bootcmd"
    },
    {
      "$ref": "#/$defs/cc_byobu"
    },
    {
      "$ref": "#/$defs/cc_ca_certs"
    },
    {
      "$ref": "#/$defs/cc_chef"
    },
    {
      "$ref": "#/$defs/cc_disable_ec2_metadata"
    },
    {
      "$ref": "#/$defs/cc_disk_setup"
    },
    {
      "$ref": "#/$defs/cc_fan"
    },
    {
      "$ref": "#/$defs/cc_final_message"
    },
    {
      "$ref": "#/$defs/cc_growpart"
    },
    {
      "$ref": "#/$defs/cc_grub_dpkg"
    },
    {
      "$ref": "#/$defs/cc_install_hotplug"
    },
    {
      "$ref": "#/$defs/cc_keyboard"
    },
    {
      "$ref": "#/$defs/cc_keys_to_console"
    },
    {
      "$ref": "#/$defs/cc_landscape"
    },
    {
      "$ref": "#/$defs/cc_locale"
    },
    {
      "$ref": "#/$defs/cc_lxd"
    },
    {
      "$ref": "#/$defs/cc_mcollective"
    },
    {
      "$ref": "#/$defs/cc_migrator"
    },
    {
      "$ref": "#/$defs/cc_mounts"
    },
    {
      "$ref": "#/$defs/cc_ntp"
    },
    {
      "$ref": "#/$defs/cc_package_update_upgrade_install"
    },
    {
      "$ref": "#/$defs/cc_phone_home"
    },
    {
      "$ref": "#/$defs/cc_power_state_change"
    },
    {
      "$ref": "#/$defs/cc_puppet"
    },
    {
      "$ref": "#/$defs/cc_resizefs"
    },
    {
      "$ref": "#/$defs/cc_resolv_conf"
    },
    {
      "$ref": "#/$defs/cc_rh_subscription"
    },
    {
      "$ref": "#/$defs/cc_rsyslog"
    },
    {
      "$ref": "#/$defs/cc_runcmd"
    },
    {
      "$ref": "#/$defs/cc_salt_minion"
    },
    {
      "$ref": "#/$defs/cc_scripts_vendor"
    },
    {
      "$ref": "#/$defs/cc_seed_random"
    },
    {
      "$ref": "#/$defs/cc_set_hostname"
    },
    {
      "$ref": "#/$defs/cc_set_passwords"
    },
    {
      "$ref": "#/$defs/cc_snap"
    },
    {
      "$ref": "#/$defs/cc_spacewalk"
    },
    {
      "$ref": "#/$defs/cc_ssh_authkey_fingerprints"
    },
    {
      "$ref": "#/$defs/cc_ssh_import_id"
    },
    {
      "$ref": "#/$defs/cc_ssh"
    },
    {
      "$ref": "#/$defs/cc_timezone"
    },
    {
      "$ref": "#/$defs/cc_ubuntu_advantage"
    },
    {
      "$ref": "#/$defs/cc_ubuntu_drivers"
    },
    {
      "$ref": "#/$defs/cc_update_etc_hosts"
    },
    {
      "$ref": "#/$defs/cc_update_hostname"
    },
    {
      "$ref": "#/$defs/cc_users_groups"
    },
    {
      "$ref": "#/$defs/cc_wireguard"
    },
    {
      "$ref": "#/$defs/cc_write_files"
    },
    {
      "$ref": "#/$defs/cc_yum_add_repo"
    },
    {
      "$ref": "#/$defs/cc_zypper_add_repo"
    },
    {
      "$ref": "#/$defs/reporting_config"
    }
  ]
}