github.com/quite/nomad@v0.8.6/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 23 client { 24 enabled = true 25 state_dir = "/tmp/client-state" 26 alloc_dir = "/tmp/alloc" 27 servers = ["a.b.c:80", "127.0.0.1:1234"] 28 node_class = "linux-medium-64bit" 29 meta { 30 foo = "bar" 31 baz = "zip" 32 } 33 server_join { 34 retry_join = [ "1.1.1.1", "2.2.2.2" ] 35 retry_max = 3 36 retry_interval = "15s" 37 } 38 options { 39 foo = "bar" 40 baz = "zip" 41 } 42 chroot_env { 43 "/opt/myapp/etc" = "/etc" 44 "/opt/myapp/bin" = "/bin" 45 } 46 network_interface = "eth0" 47 network_speed = 100 48 cpu_total_compute = 4444 49 reserved { 50 cpu = 10 51 memory = 10 52 disk = 10 53 iops = 10 54 reserved_ports = "1,100,10-12" 55 } 56 client_min_port = 1000 57 client_max_port = 2000 58 max_kill_timeout = "10s" 59 stats { 60 data_points = 35 61 collection_interval = "5s" 62 } 63 gc_interval = "6s" 64 gc_parallel_destroys = 6 65 gc_disk_usage_threshold = 82 66 gc_inode_usage_threshold = 91 67 gc_max_allocs = 50 68 no_host_uuid = false 69 } 70 server { 71 enabled = true 72 authoritative_region = "foobar" 73 bootstrap_expect = 5 74 data_dir = "/tmp/data" 75 protocol_version = 3 76 raft_protocol = 3 77 num_schedulers = 2 78 enabled_schedulers = ["test"] 79 node_gc_threshold = "12h" 80 job_gc_threshold = "12h" 81 eval_gc_threshold = "12h" 82 deployment_gc_threshold = "12h" 83 heartbeat_grace = "30s" 84 min_heartbeat_ttl = "33s" 85 max_heartbeats_per_second = 11.0 86 retry_join = [ "1.1.1.1", "2.2.2.2" ] 87 start_join = [ "1.1.1.1", "2.2.2.2" ] 88 retry_max = 3 89 retry_interval = "15s" 90 rejoin_after_leave = true 91 non_voting_server = true 92 redundancy_zone = "foo" 93 upgrade_version = "0.8.0" 94 encrypt = "abc" 95 server_join { 96 retry_join = [ "1.1.1.1", "2.2.2.2" ] 97 retry_max = 3 98 retry_interval = "15s" 99 } 100 } 101 acl { 102 enabled = true 103 token_ttl = "60s" 104 policy_ttl = "60s" 105 replication_token = "foobar" 106 } 107 telemetry { 108 statsite_address = "127.0.0.1:1234" 109 statsd_address = "127.0.0.1:2345" 110 prometheus_metrics = true 111 disable_hostname = true 112 collection_interval = "3s" 113 publish_allocation_metrics = true 114 publish_node_metrics = true 115 disable_tagged_metrics = true 116 backwards_compatible_metrics = true 117 } 118 leave_on_interrupt = true 119 leave_on_terminate = true 120 enable_syslog = true 121 syslog_facility = "LOCAL1" 122 disable_update_check = true 123 disable_anonymous_signature = true 124 http_api_response_headers { 125 Access-Control-Allow-Origin = "*" 126 } 127 consul { 128 server_service_name = "nomad" 129 server_http_check_name = "nomad-server-http-health-check" 130 server_serf_check_name = "nomad-server-serf-health-check" 131 server_rpc_check_name = "nomad-server-rpc-health-check" 132 client_service_name = "nomad-client" 133 client_http_check_name = "nomad-client-http-health-check" 134 address = "127.0.0.1:9500" 135 token = "token1" 136 auth = "username:pass" 137 ssl = true 138 verify_ssl = true 139 ca_file = "/path/to/ca/file" 140 cert_file = "/path/to/cert/file" 141 key_file = "/path/to/key/file" 142 server_auto_join = true 143 client_auto_join = true 144 auto_advertise = true 145 checks_use_advertise = true 146 } 147 vault { 148 address = "127.0.0.1:9500" 149 allow_unauthenticated = true 150 task_token_ttl = "1s" 151 enabled = false 152 token = "12345" 153 ca_file = "/path/to/ca/file" 154 ca_path = "/path/to/ca" 155 cert_file = "/path/to/cert/file" 156 key_file = "/path/to/key/file" 157 tls_server_name = "foobar" 158 tls_skip_verify = true 159 create_from_role = "test_role" 160 } 161 tls { 162 http = true 163 rpc = true 164 verify_server_hostname = true 165 ca_file = "foo" 166 cert_file = "bar" 167 key_file = "pipe" 168 rpc_upgrade_mode = true 169 verify_https_client = true 170 tls_prefer_server_cipher_suites = true 171 tls_cipher_suites = "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" 172 tls_min_version = "tls12" 173 } 174 sentinel { 175 import "foo" { 176 path = "foo" 177 args = ["a", "b", "c"] 178 } 179 import "bar" { 180 path = "bar" 181 args = ["x", "y", "z"] 182 } 183 } 184 autopilot { 185 cleanup_dead_servers = true 186 disable_upgrade_migration = true 187 last_contact_threshold = "12705s" 188 max_trailing_logs = 17849 189 enable_redundancy_zones = true 190 server_stabilization_time = "23057s" 191 enable_custom_upgrades = true 192 }