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