1
0
mirror of https://github.com/rancher/os.git synced 2025-04-28 19:34:45 +00:00
os/config/schema.go

210 lines
6.5 KiB
Go
Raw Normal View History

2016-11-06 21:41:46 +00:00
package config
var schema = `{
"type": "object",
"additionalProperties": false,
"properties": {
"ssh_authorized_keys": {"$ref": "#/definitions/list_of_strings"},
"write_files": {
"type": "array",
"items": {"$ref": "#/definitions/file_config"}
},
"hostname": {"type": "string"},
"mounts": {"type": "array"},
"rancher": {"$ref": "#/definitions/rancher_config"},
2016-11-11 22:56:25 +00:00
"runcmd": {"type": "array"},
"bootcmd": {"type": "array"}
2016-11-06 21:41:46 +00:00
},
"definitions": {
"rancher_config": {
"id": "#/definitions/rancher_config",
"type": "object",
"additionalProperties": false,
"properties": {
"console": {"type": "string"},
"environment": {"type": "object"},
2016-11-17 05:02:33 +00:00
"cloud_init_services": {"type": "object"},
2016-11-06 21:41:46 +00:00
"services": {"type": "object"},
2016-11-08 19:48:05 +00:00
"bootstrap": {"type": "object"},
2016-11-06 21:41:46 +00:00
"autoformat": {"type": "object"},
"bootstrap_docker": {"$ref": "#/definitions/docker_config"},
"cloud_init": {"$ref": "#/definitions/cloud_init_config"},
"debug": {"type": "boolean"},
"rm_usr": {"type": "boolean"},
"no_sharedroot": {"type": "boolean"},
"log": {"type": "boolean"},
"force_console_rebuild": {"type": "boolean"},
2016-11-30 01:06:23 +00:00
"recovery": {"type": "boolean"},
2016-11-06 21:41:46 +00:00
"disable": {"$ref": "#/definitions/list_of_strings"},
"services_include": {"type": "object"},
"modules": {"$ref": "#/definitions/list_of_strings"},
"network": {"$ref": "#/definitions/network_config"},
"default_network": {"type": "object"},
"repositories": {"type": "object"},
"ssh": {"$ref": "#/definitions/ssh_config"},
"state": {"$ref": "#/definitions/state_config"},
"system_docker": {"$ref": "#/definitions/docker_config"},
"upgrade": {"$ref": "#/definitions/upgrade_config"},
"docker": {"$ref": "#/definitions/docker_config"},
"registry_auths": {"type": "object"},
"defaults": {"$ref": "#/definitions/defaults_config"},
"resize_device": {"type": "string"},
2016-11-08 19:48:05 +00:00
"sysctl": {"type": "object"},
"restart_services": {"type": "array"},
"hypervisor_service": {"type": "boolean"},
2018-04-02 04:56:47 +00:00
"shutdown_timeout": {"type": "integer"},
"preload_wait": {"type": "boolean"}
2016-11-06 21:41:46 +00:00
}
},
"file_config": {
"id": "#/definitions/file_config",
"type": "object",
"additionalProperties": false,
"properties": {
"encoding": {"type": "string"},
2016-11-27 07:26:20 +00:00
"container": {"type": "string"},
2016-11-06 21:41:46 +00:00
"content": {"type": "string"},
"owner": {"type": "string"},
"path": {"type": "string"},
"permissions": {"type": "string"}
}
},
"network_config": {
"id": "#/definitions/network_config",
"type": "object",
"additionalProperties": false,
"properties": {
"pre_cmds": {"$ref": "#/definitions/list_of_strings"},
"dns": {"type": "object"},
"interfaces": {"type": "object"},
"post_cmds": {"$ref": "#/definitions/list_of_strings"},
"http_proxy": {"type": "string"},
"https_proxy": {"type": "string"},
"no_proxy": {"type": "string"}
}
},
"upgrade_config": {
"id": "#/definitions/upgrade_config",
"type": "object",
"additionalProperties": false,
"properties": {
"url": {"type": "string"},
"image": {"type": "string"},
"rollback": {"type": "string"}
}
},
"docker_config": {
"id": "#/definitions/docker_config",
"type": "object",
"additionalProperties": false,
"properties": {
"engine": {"type": "string"},
"tls": {"type": "boolean"},
"tls_args": {"$ref": "#/definitions/list_of_strings"},
"args": {"$ref": "#/definitions/list_of_strings"},
"extra_args": {"$ref": "#/definitions/list_of_strings"},
"server_cert": {"type": "string"},
"server_key": {"type": "string"},
"ca_cert": {"type": "string"},
"ca_key": {"type": "string"},
"environment": {"$ref": "#/definitions/list_of_strings"},
"storage_context": {"type": "string"},
2016-11-08 19:48:05 +00:00
"exec": {"type": ["boolean", "null"]},
2016-11-06 21:41:46 +00:00
"bridge": {"type": "string"},
"bip": {"type": "string"},
2016-11-06 21:41:46 +00:00
"config_file": {"type": "string"},
"containerd": {"type": "string"},
2016-11-08 19:48:05 +00:00
"debug": {"type": ["boolean", "null"]},
2016-11-06 21:41:46 +00:00
"exec_root": {"type": "string"},
"group": {"type": "string"},
"graph": {"type": "string"},
2016-11-08 19:48:05 +00:00
"host": {"type": "array"},
"live_restore": {"type": ["boolean", "null"]},
2016-11-06 21:41:46 +00:00
"log_driver": {"type": "string"},
"log_opts": {"type": "object"},
"pid_file": {"type": "string"},
"registry_mirror": {"type": "string"},
2016-11-08 19:48:05 +00:00
"restart": {"type": ["boolean", "null"]},
"selinux_enabled": {"type": ["boolean", "null"]},
2016-11-06 21:41:46 +00:00
"storage_driver": {"type": "string"},
2016-11-16 18:06:13 +00:00
"userland_proxy": {"type": ["boolean", "null"]},
"insecure_registry": {"$ref": "#/definitions/list_of_strings"}
2016-11-06 21:41:46 +00:00
}
},
"ssh_config": {
"id": "#/definitions/ssh_config",
"type": "object",
"additionalProperties": false,
"properties": {
2017-01-10 05:16:55 +00:00
"keys": {"type": "object"},
"daemon": {"type": "boolean"},
"port": {"type": "integer"},
"listen_address": {"type": "string"}
2016-11-06 21:41:46 +00:00
}
},
"state_config": {
"id": "#/definitions/state_config",
"type": "object",
"additionalProperties": false,
"properties": {
"directory": {"type": "string"},
"fstype": {"type": "string"},
"dev": {"type": "string"},
"wait": {"type": "boolean"},
"required": {"type": "boolean"},
"autoformat": {"$ref": "#/definitions/list_of_strings"},
"mdadm_scan": {"type": "boolean"},
2018-09-14 08:34:09 +00:00
"rngd": {"type": "boolean"},
2016-11-06 21:41:46 +00:00
"script": {"type": "string"},
"oem_fstype": {"type": "string"},
"oem_dev": {"type": "string"}
}
},
"cloud_init_config": {
"id": "#/definitions/cloud_init_config",
"type": "object",
"additionalProperties": false,
"properties": {
"datasources": {"$ref": "#/definitions/list_of_strings"}
}
},
"defaults_config": {
"id": "#/definitions/defaults_config",
"type": "object",
"additionalProperties": false,
"properties": {
"hostname": {"type": "string"},
"docker": {"type": "object"},
"network": {"$ref": "#/definitions/network_config"}
}
},
"list_of_strings": {
"type": "array",
"items": {"type": "string"},
"uniqueItems": true
}
}
}
`