github.com/hhrutter/nomad@v0.6.0-rc2.0.20170723054333-80c4b03f0705/demo/vagrant/client2.hcl (about)

     1  # Increase log verbosity
     2  log_level = "DEBUG"
     3  
     4  # Setup data dir
     5  data_dir = "/tmp/client2"
     6  
     7  # Enable the client
     8  client {
     9      enabled = true
    10  
    11      # For demo assume we are talking to server1. For production,
    12      # this should be like "nomad.service.consul:4647" and a system
    13      # like Consul used for service discovery.
    14      servers = ["127.0.0.1:4647"]
    15  
    16      # Set ourselves as thing one
    17      meta {
    18          ssd = "true"
    19      }
    20  }
    21  
    22  # Modify our port to avoid a collision with server1 and client1
    23  ports {
    24      http = 5657
    25  }
    26  
    27  advertise {
    28    http = "localhost"
    29    rpc = "localhost"
    30    serf = "localhost"
    31  }