schema.json 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. {
  2. "type": "object",
  3. "additionalProperties": false,
  4. "properties": {
  5. "ssh_authorized_keys": {"$ref": "#/definitions/list_of_strings"},
  6. "write_files": {
  7. "type": "array",
  8. "items": {"$ref": "#/definitions/file_config"}
  9. },
  10. "hostname": {"type": "string"},
  11. "mounts": {"type": "array"},
  12. "rancher": {"$ref": "#/definitions/rancher_config"},
  13. "runcmd": {"type": "array"},
  14. "bootcmd": {"type": "array"}
  15. },
  16. "definitions": {
  17. "rancher_config": {
  18. "id": "#/definitions/rancher_config",
  19. "type": "object",
  20. "additionalProperties": false,
  21. "properties": {
  22. "console": {"type": "string"},
  23. "environment": {"type": "object"},
  24. "cloud_init_services": {"type": "object"},
  25. "services": {"type": "object"},
  26. "bootstrap": {"type": "object"},
  27. "autoformat": {"type": "object"},
  28. "bootstrap_docker": {"$ref": "#/definitions/docker_config"},
  29. "cloud_init": {"$ref": "#/definitions/cloud_init_config"},
  30. "debug": {"type": "boolean"},
  31. "rm_usr": {"type": "boolean"},
  32. "no_sharedroot": {"type": "boolean"},
  33. "log": {"type": "boolean"},
  34. "force_console_rebuild": {"type": "boolean"},
  35. "disable": {"$ref": "#/definitions/list_of_strings"},
  36. "services_include": {"type": "object"},
  37. "modules": {"$ref": "#/definitions/list_of_strings"},
  38. "network": {"$ref": "#/definitions/network_config"},
  39. "default_network": {"type": "object"},
  40. "repositories": {"type": "object"},
  41. "ssh": {"$ref": "#/definitions/ssh_config"},
  42. "state": {"$ref": "#/definitions/state_config"},
  43. "system_docker": {"$ref": "#/definitions/docker_config"},
  44. "upgrade": {"$ref": "#/definitions/upgrade_config"},
  45. "docker": {"$ref": "#/definitions/docker_config"},
  46. "registry_auths": {"type": "object"},
  47. "defaults": {"$ref": "#/definitions/defaults_config"},
  48. "resize_device": {"type": "string"},
  49. "sysctl": {"type": "object"},
  50. "restart_services": {"type": "array"}
  51. }
  52. },
  53. "file_config": {
  54. "id": "#/definitions/file_config",
  55. "type": "object",
  56. "additionalProperties": false,
  57. "properties": {
  58. "encoding": {"type": "string"},
  59. "container": {"type": "string"},
  60. "content": {"type": "string"},
  61. "owner": {"type": "string"},
  62. "path": {"type": "string"},
  63. "permissions": {"type": "string"}
  64. }
  65. },
  66. "network_config": {
  67. "id": "#/definitions/network_config",
  68. "type": "object",
  69. "additionalProperties": false,
  70. "properties": {
  71. "pre_cmds": {"$ref": "#/definitions/list_of_strings"},
  72. "dns": {"type": "object"},
  73. "interfaces": {"type": "object"},
  74. "post_cmds": {"$ref": "#/definitions/list_of_strings"},
  75. "http_proxy": {"type": "string"},
  76. "https_proxy": {"type": "string"},
  77. "no_proxy": {"type": "string"}
  78. }
  79. },
  80. "upgrade_config": {
  81. "id": "#/definitions/upgrade_config",
  82. "type": "object",
  83. "additionalProperties": false,
  84. "properties": {
  85. "url": {"type": "string"},
  86. "image": {"type": "string"},
  87. "rollback": {"type": "string"}
  88. }
  89. },
  90. "docker_config": {
  91. "id": "#/definitions/docker_config",
  92. "type": "object",
  93. "additionalProperties": false,
  94. "properties": {
  95. "engine": {"type": "string"},
  96. "tls": {"type": "boolean"},
  97. "tls_args": {"$ref": "#/definitions/list_of_strings"},
  98. "args": {"$ref": "#/definitions/list_of_strings"},
  99. "extra_args": {"$ref": "#/definitions/list_of_strings"},
  100. "server_cert": {"type": "string"},
  101. "server_key": {"type": "string"},
  102. "ca_cert": {"type": "string"},
  103. "ca_key": {"type": "string"},
  104. "environment": {"$ref": "#/definitions/list_of_strings"},
  105. "storage_context": {"type": "string"},
  106. "exec": {"type": ["boolean", "null"]},
  107. "bridge": {"type": "string"},
  108. "config_file": {"type": "string"},
  109. "containerd": {"type": "string"},
  110. "debug": {"type": ["boolean", "null"]},
  111. "exec_root": {"type": "string"},
  112. "group": {"type": "string"},
  113. "graph": {"type": "string"},
  114. "host": {"type": "array"},
  115. "live_restore": {"type": ["boolean", "null"]},
  116. "log_driver": {"type": "string"},
  117. "log_opts": {"type": "object"},
  118. "pid_file": {"type": "string"},
  119. "registry_mirror": {"type": "string"},
  120. "restart": {"type": ["boolean", "null"]},
  121. "selinux_enabled": {"type": ["boolean", "null"]},
  122. "storage_driver": {"type": "string"},
  123. "userland_proxy": {"type": ["boolean", "null"]},
  124. "insecure_registry": {"$ref": "#/definitions/list_of_strings"}
  125. }
  126. },
  127. "ssh_config": {
  128. "id": "#/definitions/ssh_config",
  129. "type": "object",
  130. "additionalProperties": false,
  131. "properties": {
  132. "keys": {"type": "object"}
  133. }
  134. },
  135. "state_config": {
  136. "id": "#/definitions/state_config",
  137. "type": "object",
  138. "additionalProperties": false,
  139. "properties": {
  140. "directory": {"type": "string"},
  141. "fstype": {"type": "string"},
  142. "dev": {"type": "string"},
  143. "wait": {"type": "boolean"},
  144. "required": {"type": "boolean"},
  145. "autoformat": {"$ref": "#/definitions/list_of_strings"},
  146. "mdadm_scan": {"type": "boolean"},
  147. "script": {"type": "string"},
  148. "oem_fstype": {"type": "string"},
  149. "oem_dev": {"type": "string"}
  150. }
  151. },
  152. "cloud_init_config": {
  153. "id": "#/definitions/cloud_init_config",
  154. "type": "object",
  155. "additionalProperties": false,
  156. "properties": {
  157. "datasources": {"$ref": "#/definitions/list_of_strings"}
  158. }
  159. },
  160. "defaults_config": {
  161. "id": "#/definitions/defaults_config",
  162. "type": "object",
  163. "additionalProperties": false,
  164. "properties": {
  165. "hostname": {"type": "string"},
  166. "docker": {"type": "object"},
  167. "network": {"$ref": "#/definitions/network_config"}
  168. }
  169. },
  170. "list_of_strings": {
  171. "type": "array",
  172. "items": {"type": "string"},
  173. "uniqueItems": true
  174. }
  175. }
  176. }