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