github.com/diptanu/nomad@v0.5.7-0.20170516172507-d72e86cbe3d9/dist/README.md (about)

     1  # Dist
     2  
     3  The `dist` folder contains sample configs for various platforms.
     4  
     5  ## Conventions
     6  
     7  On unixes we will place agent configs under `/etc/nomad` and store data under `/var/lib/nomad/`. You will need to create both of these directories. We assume that `nomad` is installed to `/usr/bin/nomad`.
     8  
     9  ## Agent Configs
    10  
    11  The following example configuration files are provided:
    12  
    13  - `server.hcl`
    14  - `client.hcl`
    15  
    16  Place one of these under `/etc/nomad` depending on the node's role. You should use `server.hcl` to configure a node as a server (which is responsible for scheduling) or `client.hcl` to configure a node as a client (which is responsible for running workloads).
    17  
    18  Read <https://nomadproject.io/docs/agent/configuration/index.html> to learn which options are available and how to configure them.
    19  
    20  ## Upstart
    21  
    22  On systems using upstart the basic upstart file under `upstart/nomad.conf` starts and stops the nomad agent. Place it under `/etc/init/nomad.conf`.
    23  
    24  You can control Nomad with `start|stop|restart nomad`.
    25  
    26  ## Systemd
    27  
    28  On systems using systemd the basic systemd unit file under `systemd/nomad.service` starts and stops the nomad agent. Place it under `/etc/systemd/system/nomad.service`.
    29  
    30  You can control Nomad with `systemctl start|stop|restart nomad`.