github.com/smithx10/nomad@v0.9.1-rc1/command/agent/testdata/basic.json (about) 1 { 2 "acl": [ 3 { 4 "enabled": true, 5 "policy_ttl": "60s", 6 "replication_token": "foobar", 7 "token_ttl": "60s" 8 } 9 ], 10 "addresses": [ 11 { 12 "http": "127.0.0.1", 13 "rpc": "127.0.0.2", 14 "serf": "127.0.0.3" 15 } 16 ], 17 "advertise": [ 18 { 19 "rpc": "127.0.0.3", 20 "serf": "127.0.0.4" 21 } 22 ], 23 "autopilot": [ 24 { 25 "cleanup_dead_servers": true, 26 "disable_upgrade_migration": true, 27 "enable_custom_upgrades": true, 28 "enable_redundancy_zones": true, 29 "last_contact_threshold": "12705s", 30 "max_trailing_logs": 17849, 31 "server_stabilization_time": "23057s" 32 } 33 ], 34 "bind_addr": "192.168.0.1", 35 "client": [ 36 { 37 "alloc_dir": "/tmp/alloc", 38 "chroot_env": [ 39 { 40 "/opt/myapp/bin": "/bin", 41 "/opt/myapp/etc": "/etc" 42 } 43 ], 44 "client_max_port": 2000, 45 "client_min_port": 1000, 46 "cpu_total_compute": 4444, 47 "enabled": true, 48 "gc_disk_usage_threshold": 82, 49 "gc_inode_usage_threshold": 91, 50 "gc_interval": "6s", 51 "gc_max_allocs": 50, 52 "gc_parallel_destroys": 6, 53 "max_kill_timeout": "10s", 54 "meta": [ 55 { 56 "baz": "zip", 57 "foo": "bar" 58 } 59 ], 60 "network_interface": "eth0", 61 "network_speed": 100, 62 "no_host_uuid": false, 63 "node_class": "linux-medium-64bit", 64 "options": [ 65 { 66 "baz": "zip", 67 "foo": "bar" 68 } 69 ], 70 "reserved": [ 71 { 72 "cpu": 10, 73 "disk": 10, 74 "memory": 10, 75 "reserved_ports": "1,100,10-12" 76 } 77 ], 78 "server_join": [ 79 { 80 "retry_interval": "15s", 81 "retry_join": [ 82 "1.1.1.1", 83 "2.2.2.2" 84 ], 85 "retry_max": 3 86 } 87 ], 88 "servers": [ 89 "a.b.c:80", 90 "127.0.0.1:1234" 91 ], 92 "state_dir": "/tmp/client-state", 93 "stats": [ 94 { 95 "collection_interval": "5s", 96 "data_points": 35 97 } 98 ] 99 } 100 ], 101 "consul": [ 102 { 103 "address": "127.0.0.1:9500", 104 "auth": "username:pass", 105 "auto_advertise": true, 106 "ca_file": "/path/to/ca/file", 107 "cert_file": "/path/to/cert/file", 108 "checks_use_advertise": true, 109 "client_auto_join": true, 110 "client_http_check_name": "nomad-client-http-health-check", 111 "client_service_name": "nomad-client", 112 "key_file": "/path/to/key/file", 113 "server_auto_join": true, 114 "server_http_check_name": "nomad-server-http-health-check", 115 "server_rpc_check_name": "nomad-server-rpc-health-check", 116 "server_serf_check_name": "nomad-server-serf-health-check", 117 "server_service_name": "nomad", 118 "ssl": true, 119 "token": "token1", 120 "verify_ssl": true 121 } 122 ], 123 "data_dir": "/tmp/nomad", 124 "datacenter": "dc2", 125 "disable_anonymous_signature": true, 126 "disable_update_check": true, 127 "enable_debug": true, 128 "enable_syslog": true, 129 "http_api_response_headers": [ 130 { 131 "Access-Control-Allow-Origin": "*" 132 } 133 ], 134 "leave_on_interrupt": true, 135 "leave_on_terminate": true, 136 "log_json": true, 137 "log_level": "ERR", 138 "name": "my-web", 139 "plugin": { 140 "docker": { 141 "args": [ 142 "foo", 143 "bar" 144 ], 145 "config": { 146 "foo": "bar", 147 "nested": { 148 "bam": 2 149 } 150 } 151 }, 152 "exec": { 153 "config": { 154 "foo": true 155 } 156 } 157 }, 158 "plugin_dir": "/tmp/nomad-plugins", 159 "ports": [ 160 { 161 "http": 1234, 162 "rpc": 2345, 163 "serf": 3456 164 } 165 ], 166 "region": "foobar", 167 "sentinel": [ 168 { 169 "import": [ 170 { 171 "foo": [ 172 { 173 "args": [ 174 "a", 175 "b", 176 "c" 177 ], 178 "path": "foo" 179 } 180 ] 181 }, 182 { 183 "bar": [ 184 { 185 "args": [ 186 "x", 187 "y", 188 "z" 189 ], 190 "path": "bar" 191 } 192 ] 193 } 194 ] 195 } 196 ], 197 "server": [ 198 { 199 "authoritative_region": "foobar", 200 "bootstrap_expect": 5, 201 "data_dir": "/tmp/data", 202 "deployment_gc_threshold": "12h", 203 "enabled": true, 204 "enabled_schedulers": [ 205 "test" 206 ], 207 "encrypt": "abc", 208 "eval_gc_threshold": "12h", 209 "heartbeat_grace": "30s", 210 "job_gc_threshold": "12h", 211 "max_heartbeats_per_second": 11, 212 "min_heartbeat_ttl": "33s", 213 "node_gc_threshold": "12h", 214 "non_voting_server": true, 215 "num_schedulers": 2, 216 "protocol_version": 3, 217 "raft_protocol": 3, 218 "redundancy_zone": "foo", 219 "rejoin_after_leave": true, 220 "retry_interval": "15s", 221 "retry_join": [ 222 "1.1.1.1", 223 "2.2.2.2" 224 ], 225 "retry_max": 3, 226 "server_join": [ 227 { 228 "retry_interval": "15s", 229 "retry_join": [ 230 "1.1.1.1", 231 "2.2.2.2" 232 ], 233 "retry_max": 3 234 } 235 ], 236 "start_join": [ 237 "1.1.1.1", 238 "2.2.2.2" 239 ], 240 "upgrade_version": "0.8.0" 241 } 242 ], 243 "syslog_facility": "LOCAL1", 244 "telemetry": [ 245 { 246 "backwards_compatible_metrics": true, 247 "collection_interval": "3s", 248 "disable_hostname": true, 249 "disable_tagged_metrics": true, 250 "prometheus_metrics": true, 251 "publish_allocation_metrics": true, 252 "publish_node_metrics": true, 253 "statsd_address": "127.0.0.1:2345", 254 "statsite_address": "127.0.0.1:1234" 255 } 256 ], 257 "tls": [ 258 { 259 "ca_file": "foo", 260 "cert_file": "bar", 261 "http": true, 262 "key_file": "pipe", 263 "rpc": true, 264 "rpc_upgrade_mode": true, 265 "tls_cipher_suites": "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", 266 "tls_min_version": "tls12", 267 "tls_prefer_server_cipher_suites": true, 268 "verify_https_client": true, 269 "verify_server_hostname": true 270 } 271 ], 272 "vault": [ 273 { 274 "address": "127.0.0.1:9500", 275 "allow_unauthenticated": true, 276 "ca_file": "/path/to/ca/file", 277 "ca_path": "/path/to/ca", 278 "cert_file": "/path/to/cert/file", 279 "create_from_role": "test_role", 280 "enabled": false, 281 "key_file": "/path/to/key/file", 282 "task_token_ttl": "1s", 283 "tls_server_name": "foobar", 284 "tls_skip_verify": true, 285 "token": "12345" 286 } 287 ] 288 }