github.com/hhrutter/nomad@v0.6.0-rc2.0.20170723054333-80c4b03f0705/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  	bootstrap_expect = 5
    67  	data_dir = "/tmp/data"
    68  	protocol_version = 3
    69  	num_schedulers = 2
    70  	enabled_schedulers = ["test"]
    71  	node_gc_threshold = "12h"
    72  	job_gc_threshold = "12h"
    73  	eval_gc_threshold = "12h"
    74  	deployment_gc_threshold = "12h"
    75  	heartbeat_grace   = "30s"
    76  	min_heartbeat_ttl = "33s"
    77  	max_heartbeats_per_second = 11.0
    78  	retry_join = [ "1.1.1.1", "2.2.2.2" ]
    79  	start_join = [ "1.1.1.1", "2.2.2.2" ]
    80  	retry_max = 3
    81  	retry_interval = "15s"
    82  	rejoin_after_leave = true
    83      encrypt = "abc"
    84  }
    85  telemetry {
    86  	statsite_address = "127.0.0.1:1234"
    87  	statsd_address = "127.0.0.1:2345"
    88  	disable_hostname = true
    89      collection_interval = "3s"
    90      publish_allocation_metrics = true
    91      publish_node_metrics = true
    92  }
    93  leave_on_interrupt = true
    94  leave_on_terminate = true
    95  enable_syslog = true
    96  syslog_facility = "LOCAL1"
    97  disable_update_check = true
    98  disable_anonymous_signature = true
    99  atlas {
   100  	infrastructure = "armon/test"
   101  	token = "abcd"
   102  	join = true
   103  	endpoint = "127.0.0.1:1234"
   104  }
   105  http_api_response_headers {
   106  	Access-Control-Allow-Origin = "*"
   107  }
   108  consul {
   109      server_service_name = "nomad"
   110      client_service_name = "nomad-client"
   111      address = "127.0.0.1:9500"
   112      token = "token1"
   113      auth = "username:pass"
   114      ssl = true
   115      verify_ssl = true
   116      ca_file = "/path/to/ca/file"
   117      cert_file = "/path/to/cert/file"
   118      key_file = "/path/to/key/file"
   119      server_auto_join = true
   120      client_auto_join = true
   121      auto_advertise = true
   122      checks_use_advertise = true
   123  }
   124  vault {
   125      address = "127.0.0.1:9500"
   126      allow_unauthenticated = true
   127      task_token_ttl = "1s"
   128      enabled = false
   129      token = "12345"
   130      ca_file = "/path/to/ca/file"
   131      ca_path = "/path/to/ca"
   132      cert_file = "/path/to/cert/file"
   133      key_file = "/path/to/key/file"
   134      tls_server_name = "foobar"
   135      tls_skip_verify = true
   136      create_from_role = "test_role"
   137  }
   138  tls {
   139      http = true
   140      rpc = true
   141      verify_server_hostname = true
   142      ca_file = "foo"
   143      cert_file = "bar"
   144      key_file = "pipe"
   145      verify_https_client = true
   146  }