open-nomad/dist/README.md

30 lines
1.2 KiB
Markdown
Raw Normal View History

2015-12-02 19:33:44 +00:00
# Dist
The `dist` folder contains sample configs for various platforms.
## Conventions
2015-12-02 19:33:44 +00:00
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/local/bin/nomad`.
2015-12-02 19:33:44 +00:00
## Agent Configs
The following example configuration files are provided:
2015-12-02 19:33:44 +00:00
- `server.hcl`
- `client.hcl`
2015-12-02 19:33:44 +00:00
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).
2015-12-02 19:33:44 +00:00
2015-12-03 08:18:44 +00:00
Read <https://nomadproject.io/docs/agent/config.html> to learn which options are available and how to configure them.
2015-12-02 19:33:44 +00:00
## Upstart
On systems using upstart the basic upstart file under `upstart/nomad.hcl` starts and stops the nomad agent. Place it under `/etc/init/nomad.hcl`.
2015-12-02 19:33:44 +00:00
You can control Nomad with `start|stop|restart nomad`.
## Systemd
On systems using systemd the basic systemd file under `systemd/nomad.service` starts and stops the nomad agent. Place it under `/etc/systemd/system/nomad.service`.
You can control Nomad with `systemctl start|stop|restart nomad`.