github.com/smintz/nomad@v0.8.3/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      server_http_check_name = "nomad-server-http-health-check"
   119      server_serf_check_name = "nomad-server-serf-health-check"
   120      server_rpc_check_name = "nomad-server-rpc-health-check"
   121      client_service_name = "nomad-client"
   122      client_http_check_name = "nomad-client-http-health-check"
   123      address = "127.0.0.1:9500"
   124      token = "token1"
   125      auth = "username:pass"
   126      ssl = true
   127      verify_ssl = true
   128      ca_file = "/path/to/ca/file"
   129      cert_file = "/path/to/cert/file"
   130      key_file = "/path/to/key/file"
   131      server_auto_join = true
   132      client_auto_join = true
   133      auto_advertise = true
   134      checks_use_advertise = true
   135  }
   136  vault {
   137      address = "127.0.0.1:9500"
   138      allow_unauthenticated = true
   139      task_token_ttl = "1s"
   140      enabled = false
   141      token = "12345"
   142      ca_file = "/path/to/ca/file"
   143      ca_path = "/path/to/ca"
   144      cert_file = "/path/to/cert/file"
   145      key_file = "/path/to/key/file"
   146      tls_server_name = "foobar"
   147      tls_skip_verify = true
   148      create_from_role = "test_role"
   149  }
   150  tls {
   151      http = true
   152      rpc = true
   153      verify_server_hostname = true
   154      ca_file = "foo"
   155      cert_file = "bar"
   156      key_file = "pipe"
   157      rpc_upgrade_mode = true
   158      verify_https_client = true
   159  }
   160  sentinel {
   161      import "foo" {
   162          path = "foo"
   163          args = ["a", "b", "c"]
   164      }
   165      import "bar" {
   166          path = "bar"
   167          args = ["x", "y", "z"]
   168      }
   169  }
   170  autopilot {
   171      cleanup_dead_servers = true
   172      disable_upgrade_migration = true
   173      last_contact_threshold = "12705s"
   174      max_trailing_logs = 17849
   175      enable_redundancy_zones = true
   176      server_stabilization_time = "23057s"
   177      enable_custom_upgrades = true
   178  }