Consul: Difference between revisions

imported>Zie
Added page about Consul and Consul-template
 
imported>Zie
m minor note about the config snippet.
Line 17: Line 17:
This turns on haproxy with essentially a blank config
This turns on haproxy with essentially a blank config
then sets up a systemd unit to run haproxy-config, a consul-template service to generate the haproxy configuration from your template.
then sets up a systemd unit to run haproxy-config, a consul-template service to generate the haproxy configuration from your template.
note, in the configuration below, you will need to change: /path/to/haproxy.consul to the path where your haproxy consul template resides.  If you rename the file, be sure to fix the ExecReload line as well.


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">