github.com/mattyr/nomad@v0.3.3-0.20160919021406-3485a065154a/command/agent/config-test-fixtures/basic.hcl (about) 1 region = "foobar" 2 datacenter = "dc2" 3 name = "my-web" 4 data_dir = "/tmp/nomad" 5 log_level = "ERR" 6 bind_addr = "192.168.0.1" 7 enable_debug = true 8 ports { 9 http = 1234 10 rpc = 2345 11 serf = 3456 12 } 13 addresses { 14 http = "127.0.0.1" 15 rpc = "127.0.0.2" 16 serf = "127.0.0.3" 17 } 18 advertise { 19 rpc = "127.0.0.3" 20 serf = "127.0.0.4" 21 } 22 client { 23 enabled = true 24 state_dir = "/tmp/client-state" 25 alloc_dir = "/tmp/alloc" 26 servers = ["a.b.c:80", "127.0.0.1:1234"] 27 node_class = "linux-medium-64bit" 28 meta { 29 foo = "bar" 30 baz = "zip" 31 } 32 options { 33 foo = "bar" 34 baz = "zip" 35 } 36 chroot_env { 37 "/opt/myapp/etc" = "/etc" 38 "/opt/myapp/bin" = "/bin" 39 } 40 network_interface = "eth0" 41 network_speed = 100 42 reserved { 43 cpu = 10 44 memory = 10 45 disk = 10 46 iops = 10 47 reserved_ports = "1,100,10-12" 48 } 49 client_min_port = 1000 50 client_max_port = 2000 51 max_kill_timeout = "10s" 52 stats { 53 data_points = 35 54 collection_interval = "5s" 55 } 56 } 57 server { 58 enabled = true 59 bootstrap_expect = 5 60 data_dir = "/tmp/data" 61 protocol_version = 3 62 num_schedulers = 2 63 enabled_schedulers = ["test"] 64 node_gc_threshold = "12h" 65 heartbeat_grace = "30s" 66 retry_join = [ "1.1.1.1", "2.2.2.2" ] 67 start_join = [ "1.1.1.1", "2.2.2.2" ] 68 retry_max = 3 69 retry_interval = "15s" 70 rejoin_after_leave = true 71 } 72 telemetry { 73 statsite_address = "127.0.0.1:1234" 74 statsd_address = "127.0.0.1:2345" 75 disable_hostname = true 76 collection_interval = "3s" 77 publish_allocation_metrics = true 78 publish_node_metrics = true 79 } 80 leave_on_interrupt = true 81 leave_on_terminate = true 82 enable_syslog = true 83 syslog_facility = "LOCAL1" 84 disable_update_check = true 85 disable_anonymous_signature = true 86 atlas { 87 infrastructure = "armon/test" 88 token = "abcd" 89 join = true 90 endpoint = "127.0.0.1:1234" 91 } 92 http_api_response_headers { 93 Access-Control-Allow-Origin = "*" 94 } 95 consul { 96 server_service_name = "nomad" 97 client_service_name = "nomad-client" 98 address = "127.0.0.1:9500" 99 token = "token1" 100 auth = "username:pass" 101 ssl = true 102 verify_ssl = false 103 ca_file = "/path/to/ca/file" 104 cert_file = "/path/to/cert/file" 105 key_file = "/path/to/key/file" 106 server_auto_join = false 107 client_auto_join = false 108 auto_advertise = false 109 } 110 vault { 111 address = "127.0.0.1:9500" 112 allow_unauthenticated = true 113 task_token_ttl = "1s" 114 enabled = false 115 token = "12345" 116 tls_ca_file = "/path/to/ca/file" 117 tls_ca_path = "/path/to/ca" 118 tls_cert_file = "/path/to/cert/file" 119 tls_key_file = "/path/to/key/file" 120 tls_server_name = "foobar" 121 tls_skip_verify = true 122 }