Consul: Difference between revisions

imported>Zie
m formatting cleanup
imported>Zhenyavinogradov
mention setting service type for consul to "notify"
Line 11: Line 11:


Setting up Consul in a production setting is beyond the scope of this wiki, see the consul documentation for particulars.
Setting up Consul in a production setting is beyond the scope of this wiki, see the consul documentation for particulars.
One advice is that if you have systemd services depending on Consul via <code>After=consul.service</code>, you may want to switch consul service type no <code>notify</code>, to make sure that dependent services don't try to run until Consul is ready to accept connections:
<syntaxhighlight lang="nix">
  systemd.services.consul.serviceConfig.Type = "notify";
</syntaxhighlight>


== Consul-template ==
== Consul-template ==