Tries to follow the packaging guidelines from Fedora.
- Binary:
/usr/bin/confd - Config:
/etc/confd/ - Sysconfig:
/etc/sysconfig/confd
To build the RPM (non-root user):
-
Check out this repo
-
Install rpmdevtools and mock
sudo yum install rpmdevtools mock -
Set up your rpmbuild directory tree
rpmdev-setuptree -
Link the spec file and sources from the repository into your rpmbuild/SOURCES directory
ln -s ${repo}/SPECS/confd.spec rpmbuild/SPECS/ ln -s ${repo}/SOURCES/* rpmbuild/SOURCES/ -
Download remote source files
spectool -g -R rpmbuild/SPECS/confd.spec -
Build the RPM
rpmbuild -ba rpmbuild/SPECS/confd.spec
- Install the rpm
- Put config files in
/etc/confd/ - Start the service and tail the logs
systemctl start confd.serviceandjournalctl -f
- To enable at reboot
systemctl enable confd.service
See the confd.io website.