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