github.com/blixtra/nomad@v0.7.2-0.20171221000451-da9a1d7bb050/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  	num_schedulers = 2
    71  	enabled_schedulers = ["test"]
    72  	node_gc_threshold = "12h"
    73  	job_gc_threshold = "12h"
    74  	eval_gc_threshold = "12h"
    75  	deployment_gc_threshold = "12h"
    76  	heartbeat_grace   = "30s"
    77  	min_heartbeat_ttl = "33s"
    78  	max_heartbeats_per_second = 11.0
    79  	retry_join = [ "1.1.1.1", "2.2.2.2" ]
    80  	start_join = [ "1.1.1.1", "2.2.2.2" ]
    81  	retry_max = 3
    82  	retry_interval = "15s"
    83  	rejoin_after_leave = true
    84      encrypt = "abc"
    85  }
    86  acl {
    87      enabled = true
    88      token_ttl = "60s"
    89      policy_ttl = "60s"
    90      replication_token = "foobar"
    91  }
    92  telemetry {
    93  	statsite_address = "127.0.0.1:1234"
    94  	statsd_address = "127.0.0.1:2345"
    95  	prometheus_metrics = true
    96  	disable_hostname = true
    97      collection_interval = "3s"
    98      publish_allocation_metrics = true
    99      publish_node_metrics = true
   100      disable_tagged_metrics = true
   101      backwards_compatible_metrics = true
   102  }
   103  leave_on_interrupt = true
   104  leave_on_terminate = true
   105  enable_syslog = true
   106  syslog_facility = "LOCAL1"
   107  disable_update_check = true
   108  disable_anonymous_signature = true
   109  http_api_response_headers {
   110  	Access-Control-Allow-Origin = "*"
   111  }
   112  consul {
   113      server_service_name = "nomad"
   114      client_service_name = "nomad-client"
   115      address = "127.0.0.1:9500"
   116      token = "token1"
   117      auth = "username:pass"
   118      ssl = true
   119      verify_ssl = true
   120      ca_file = "/path/to/ca/file"
   121      cert_file = "/path/to/cert/file"
   122      key_file = "/path/to/key/file"
   123      server_auto_join = true
   124      client_auto_join = true
   125      auto_advertise = true
   126      checks_use_advertise = true
   127  }
   128  vault {
   129      address = "127.0.0.1:9500"
   130      allow_unauthenticated = true
   131      task_token_ttl = "1s"
   132      enabled = false
   133      token = "12345"
   134      ca_file = "/path/to/ca/file"
   135      ca_path = "/path/to/ca"
   136      cert_file = "/path/to/cert/file"
   137      key_file = "/path/to/key/file"
   138      tls_server_name = "foobar"
   139      tls_skip_verify = true
   140      create_from_role = "test_role"
   141  }
   142  tls {
   143      http = true
   144      rpc = true
   145      verify_server_hostname = true
   146      ca_file = "foo"
   147      cert_file = "bar"
   148      key_file = "pipe"
   149      rpc_upgrade_mode = true
   150      verify_https_client = true
   151  }
   152  sentinel {
   153      import "foo" {
   154          path = "foo"
   155          args = ["a", "b", "c"]
   156      }
   157      import "bar" {
   158          path = "bar"
   159          args = ["x", "y", "z"]
   160      }
   161  }