github.com/smithx10/nomad@v0.9.1-rc1/command/agent/testdata/basic.hcl (about)

     1  # This file was used to generate basic.json from https://www.hcl2json.com/
     2  region = "foobar"
     3  datacenter = "dc2"
     4  name = "my-web"
     5  data_dir = "/tmp/nomad"
     6  plugin_dir = "/tmp/nomad-plugins"
     7  log_level = "ERR"
     8  log_json = true
     9  bind_addr = "192.168.0.1"
    10  enable_debug = true
    11  ports {
    12  	http = 1234
    13  	rpc = 2345
    14  	serf = 3456
    15  }
    16  addresses {
    17  	http = "127.0.0.1"
    18  	rpc = "127.0.0.2"
    19  	serf = "127.0.0.3"
    20  }
    21  advertise {
    22  	rpc = "127.0.0.3"
    23  	serf = "127.0.0.4"
    24  }
    25  
    26  client {
    27  	enabled = true
    28  	state_dir = "/tmp/client-state"
    29  	alloc_dir = "/tmp/alloc"
    30  	servers = ["a.b.c:80", "127.0.0.1:1234"]
    31  	node_class = "linux-medium-64bit"
    32  	meta {
    33  		foo = "bar"
    34  		baz = "zip"
    35  	}
    36  	server_join {
    37  		retry_join = [ "1.1.1.1", "2.2.2.2" ]
    38  		retry_max = 3
    39  		retry_interval = "15s"
    40  	}
    41  	options {
    42  		foo = "bar"
    43  		baz = "zip"
    44  	}
    45  	chroot_env {
    46  		"/opt/myapp/etc" = "/etc"
    47  		"/opt/myapp/bin" = "/bin"
    48  	}
    49  	network_interface = "eth0"
    50  	network_speed = 100
    51  	cpu_total_compute = 4444
    52  	reserved {
    53  		cpu = 10
    54  		memory = 10
    55  		disk = 10
    56  		reserved_ports = "1,100,10-12"
    57  	}
    58  	client_min_port = 1000
    59  	client_max_port = 2000
    60  	max_kill_timeout = "10s"
    61  	stats {
    62  		data_points = 35
    63  		collection_interval = "5s"
    64  	}
    65  	gc_interval = "6s"
    66  	gc_parallel_destroys = 6
    67  	gc_disk_usage_threshold = 82
    68  	gc_inode_usage_threshold = 91
    69  	gc_max_allocs = 50
    70  	no_host_uuid = false
    71  }
    72  server {
    73  	enabled = true
    74  	authoritative_region = "foobar"
    75  	bootstrap_expect = 5
    76  	data_dir = "/tmp/data"
    77  	protocol_version = 3
    78  	raft_protocol = 3
    79  	num_schedulers = 2
    80  	enabled_schedulers = ["test"]
    81  	node_gc_threshold = "12h"
    82  	job_gc_threshold = "12h"
    83  	eval_gc_threshold = "12h"
    84  	deployment_gc_threshold = "12h"
    85  	heartbeat_grace   = "30s"
    86  	min_heartbeat_ttl = "33s"
    87  	max_heartbeats_per_second = 11.0
    88  	retry_join = [ "1.1.1.1", "2.2.2.2" ]
    89  	start_join = [ "1.1.1.1", "2.2.2.2" ]
    90  	retry_max = 3
    91  	retry_interval = "15s"
    92  	rejoin_after_leave = true
    93  	non_voting_server = true
    94  	redundancy_zone = "foo"
    95  	upgrade_version = "0.8.0"
    96  	encrypt = "abc"
    97  	server_join {
    98  		retry_join = [ "1.1.1.1", "2.2.2.2" ]
    99  		retry_max = 3
   100  		retry_interval = "15s"
   101  	}
   102  }
   103  acl {
   104  	enabled = true
   105  	token_ttl = "60s"
   106  	policy_ttl = "60s"
   107  	replication_token = "foobar"
   108  }
   109  telemetry {
   110  	statsite_address = "127.0.0.1:1234"
   111  	statsd_address = "127.0.0.1:2345"
   112  	prometheus_metrics = true
   113  	disable_hostname = true
   114  	collection_interval = "3s"
   115  	publish_allocation_metrics = true
   116  	publish_node_metrics = true
   117  	disable_tagged_metrics = true
   118  	backwards_compatible_metrics = true
   119  }
   120  leave_on_interrupt = true
   121  leave_on_terminate = true
   122  enable_syslog = true
   123  syslog_facility = "LOCAL1"
   124  disable_update_check = true
   125  disable_anonymous_signature = true
   126  http_api_response_headers {
   127  	Access-Control-Allow-Origin = "*"
   128  }
   129  consul {
   130  	server_service_name = "nomad"
   131  	server_http_check_name = "nomad-server-http-health-check"
   132  	server_serf_check_name = "nomad-server-serf-health-check"
   133  	server_rpc_check_name = "nomad-server-rpc-health-check"
   134  	client_service_name = "nomad-client"
   135  	client_http_check_name = "nomad-client-http-health-check"
   136  	address = "127.0.0.1:9500"
   137  	token = "token1"
   138  	auth = "username:pass"
   139  	ssl = true
   140  	verify_ssl = true
   141  	ca_file = "/path/to/ca/file"
   142  	cert_file = "/path/to/cert/file"
   143  	key_file = "/path/to/key/file"
   144  	server_auto_join = true
   145  	client_auto_join = true
   146  	auto_advertise = true
   147  	checks_use_advertise = true
   148  }
   149  vault {
   150  	address = "127.0.0.1:9500"
   151  	allow_unauthenticated = true
   152  	task_token_ttl = "1s"
   153  	enabled = false
   154  	token = "12345"
   155  	ca_file = "/path/to/ca/file"
   156  	ca_path = "/path/to/ca"
   157  	cert_file = "/path/to/cert/file"
   158  	key_file = "/path/to/key/file"
   159  	tls_server_name = "foobar"
   160  	tls_skip_verify = true
   161  	create_from_role = "test_role"
   162  }
   163  tls {
   164  	http = true
   165  	rpc = true
   166  	verify_server_hostname = true
   167  	ca_file = "foo"
   168  	cert_file = "bar"
   169  	key_file = "pipe"
   170  	rpc_upgrade_mode = true
   171  	verify_https_client = true
   172  	tls_prefer_server_cipher_suites = true
   173  	tls_cipher_suites = "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
   174  	tls_min_version = "tls12"
   175  }
   176  sentinel {
   177  	import "foo" {
   178  		path = "foo"
   179  		args = ["a", "b", "c"]
   180  	}
   181  	import "bar" {
   182  		path = "bar"
   183  		args = ["x", "y", "z"]
   184  	}
   185  }
   186  autopilot {
   187  	cleanup_dead_servers = true
   188  	disable_upgrade_migration = true
   189  	last_contact_threshold = "12705s"
   190  	max_trailing_logs = 17849
   191  	enable_redundancy_zones = true
   192  	server_stabilization_time = "23057s"
   193  	enable_custom_upgrades = true
   194  }
   195  plugin "docker" {
   196    args = ["foo", "bar"]
   197    config {
   198      foo = "bar"
   199      nested {
   200        bam = 2
   201      }
   202    }
   203  }
   204  plugin "exec" {
   205    config {
   206      foo = true
   207    }
   208  }