|
| 1 | +{ |
| 2 | + "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | + "$id": "https://github.com/AzureLocal/azurelocal-loadtools/config/schema/variables.schema.json", |
| 4 | + "title": "Load Tools Variables", |
| 5 | + "description": "Schema for config/variables.example.yml — validates required sections and key structure.", |
| 6 | + "type": "object", |
| 7 | + "required": ["azure", "keyvault", "azure_local", "storage", "credentials", "testing", "tags"], |
| 8 | + "properties": { |
| 9 | + "azure": { |
| 10 | + "type": "object", |
| 11 | + "required": ["subscription_id", "tenant_id", "resource_group", "location"], |
| 12 | + "properties": { |
| 13 | + "subscription_id": { "type": "string" }, |
| 14 | + "tenant_id": { "type": "string" }, |
| 15 | + "resource_group": { "type": "string" }, |
| 16 | + "location": { "type": "string" } |
| 17 | + } |
| 18 | + }, |
| 19 | + "keyvault": { |
| 20 | + "type": "object", |
| 21 | + "required": ["name"], |
| 22 | + "properties": { |
| 23 | + "name": { "type": "string" }, |
| 24 | + "auth_method": { "type": "string", "enum": ["managed_identity", "service_principal", "az_cli"] } |
| 25 | + } |
| 26 | + }, |
| 27 | + "azure_local": { |
| 28 | + "type": "object", |
| 29 | + "required": ["cluster_name", "nodes"], |
| 30 | + "properties": { |
| 31 | + "cluster_name": { "type": "string" }, |
| 32 | + "cluster_domain": { "type": "string" }, |
| 33 | + "nodes": { |
| 34 | + "type": "array", |
| 35 | + "minItems": 1, |
| 36 | + "items": { |
| 37 | + "type": "object", |
| 38 | + "required": ["name", "management_ip"], |
| 39 | + "properties": { |
| 40 | + "name": { "type": "string" }, |
| 41 | + "management_ip": { "type": "string" }, |
| 42 | + "storage_ip": { "type": "string" } |
| 43 | + } |
| 44 | + } |
| 45 | + } |
| 46 | + } |
| 47 | + }, |
| 48 | + "storage": { |
| 49 | + "type": "object", |
| 50 | + "required": ["csv_path"], |
| 51 | + "properties": { |
| 52 | + "csv_path": { "type": "string" }, |
| 53 | + "collect_volume_path": { "type": "string" }, |
| 54 | + "base_vhd_path": { "type": "string" } |
| 55 | + } |
| 56 | + }, |
| 57 | + "networking": { |
| 58 | + "type": "object", |
| 59 | + "properties": { |
| 60 | + "management": { |
| 61 | + "type": "object", |
| 62 | + "properties": { |
| 63 | + "subnet": { "type": "string" }, |
| 64 | + "vlan_id": { "type": "integer" } |
| 65 | + } |
| 66 | + }, |
| 67 | + "storage": { |
| 68 | + "type": "object", |
| 69 | + "properties": { |
| 70 | + "subnet": { "type": "string" }, |
| 71 | + "vlan_id": { "type": "integer" }, |
| 72 | + "rdma_enabled": { "type": "boolean" } |
| 73 | + } |
| 74 | + }, |
| 75 | + "compute": { |
| 76 | + "type": "object", |
| 77 | + "properties": { |
| 78 | + "subnet": { "type": "string" }, |
| 79 | + "vlan_id": { "type": "integer" } |
| 80 | + } |
| 81 | + } |
| 82 | + } |
| 83 | + }, |
| 84 | + "credentials": { |
| 85 | + "type": "object", |
| 86 | + "required": ["cluster_admin_username", "cluster_admin_password"], |
| 87 | + "properties": { |
| 88 | + "cluster_admin_username": { "type": "string" }, |
| 89 | + "cluster_admin_password": { "type": "string" }, |
| 90 | + "vmfleet_admin_username": { "type": "string" }, |
| 91 | + "vmfleet_admin_password": { "type": "string" } |
| 92 | + } |
| 93 | + }, |
| 94 | + "testing": { |
| 95 | + "type": "object", |
| 96 | + "required": ["default_tool"], |
| 97 | + "properties": { |
| 98 | + "default_tool": { "type": "string", "enum": ["vmfleet", "fio", "iperf", "hammerdb", "stress-ng"] }, |
| 99 | + "default_profile": { "type": "string" }, |
| 100 | + "duration_seconds": { "type": "integer", "minimum": 1 }, |
| 101 | + "warmup_seconds": { "type": "integer", "minimum": 0 } |
| 102 | + } |
| 103 | + }, |
| 104 | + "monitoring": { |
| 105 | + "type": "object", |
| 106 | + "properties": { |
| 107 | + "log_analytics_workspace_id": { "type": "string" }, |
| 108 | + "log_analytics_shared_key": { "type": "string" }, |
| 109 | + "enable_real_time": { "type": "boolean" }, |
| 110 | + "collection_interval_seconds": { "type": "integer", "minimum": 1 } |
| 111 | + } |
| 112 | + }, |
| 113 | + "reporting": { |
| 114 | + "type": "object", |
| 115 | + "properties": { |
| 116 | + "output_dir": { "type": "string" }, |
| 117 | + "format": { "type": "string", "enum": ["html", "json", "csv"] }, |
| 118 | + "include_charts": { "type": "boolean" } |
| 119 | + } |
| 120 | + }, |
| 121 | + "winrm": { |
| 122 | + "type": "object", |
| 123 | + "properties": { |
| 124 | + "port": { "type": "integer" }, |
| 125 | + "use_ssl": { "type": "boolean" }, |
| 126 | + "authentication": { "type": "string", "enum": ["Kerberos", "Negotiate", "Basic"] }, |
| 127 | + "operation_timeout_seconds": { "type": "integer", "minimum": 1 } |
| 128 | + } |
| 129 | + }, |
| 130 | + "tags": { |
| 131 | + "type": "object", |
| 132 | + "additionalProperties": { "type": "string" } |
| 133 | + } |
| 134 | + }, |
| 135 | + "additionalProperties": false |
| 136 | +} |
0 commit comments