Tries to follow the packaging guidelines from Fedora.
- Binary:
/usr/bin/nomad
- Config:
/etc/nomad/
Heavily borrowed from https://github.com/stevendborrelli/consul-template-rpm.
If you have vagrant installed, then just clone this repo and vagrant up
.
If not, build the RPM as a non-root user from your home directory:
-
Check out this repo. Seriously - check it out. Nice.
git clone <this_repo_url>
-
Install
rpmdevtools
andmock
.sudo yum install rpmdevtools mock
-
Set up your rpmbuild directory tree.
rpmdev-setuptree
-
Link the spec file and sources.
ln -s $HOME/nomad-rpm/SPECS/nomad.spec rpmbuild/SPECS/ find $HOME/nomad-rpm/SOURCES -type f -exec ln -s {} rpmbuild/SOURCES/ \;
-
Download remote source files
spectool -g -R rpmbuild/SPECS/nomad.spec
-
Build the RPM
rpmbuild -ba rpmbuild/SPECS/nomad.spec
One RPM for the Nomad binary.
- Install the RPM.
- change config files in
/etc/nomad/
or put your config file. - Start the service and tail the logs
systemctl start nomad.service
andjournalctl -f
.- To enable at reboot
systemctl enable nomad.service
.
- To enable at reboot
Config files are loaded in lexicographical order from the config
dir. Some
sample configs are provided.
See the nomadproject.io website.