template rendering and notifications with Consul
Project homepage: https://www.consul.io/
Description
This project provides a convenient way to populate values from Consul
into the file system using the consul-template daemon.
The daemon consul-template queries a Consul instance and updates any
number of specified templates on the file system. As an added bonus,
consul-template can optionally run arbitrary commands when the update
process completes.
Package information
- Ports path
- sysutils/consul-template
- Package architecture
- amd64
- Maintainer
- The OpenBSD ports mailing-list <ports@openbsd.org>
- Categories
- sysutils, net, lang/go
- Available flavors
- None listed
- Only for architectures
- aarch64, amd64, arm, i386, riscv64
Ports list build and test dependencies as well as runtime dependencies. pkg_add selects those needed for installation.
Direct dependencies
Build
Test
OpenBSD README
This README contains unresolved ports variables; replace them before using its commands.
+-------------------------------------------------------------------------------
| Running consul-template on OpenBSD
+-------------------------------------------------------------------------------
Multiple instances
==================
By definition consul-template is meant to be ran with multiple instances. The
default `consul_template` uses ${SYSCONFDIR}/consul-template.d/default.conf .
In order to start multiple instances:
# ln -s ${RCDIR}/consul_template ${RCDIR}/consul_template_$NAME
# rcctl set consul_template_$NAME status on
# rcctl set consul_template_$NAME flags \
-config ${SYSCONFDIR}/consul-template.d/$NAME.conf
# rcctl start consul_template_$NAME
Configuration
=============
A default configuration file has been installed into
${SYSCONFDIR}/consul-template.d/default.conf . Please refer to the
the following https://github.com/hashicorp/consul-template#configuration-files
for more information on the configuration syntax.