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