Skip to content

Commit 33f4ef8

Browse files
Merge pull request #2 from teralytics/fix_client_address_override_in_upstart_script
if consul_client_address set (in consul.conf), in the upstart script do not set -client flag …
2 parents b655bf2 + 7f86953 commit 33f4ef8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/consul.conf.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ script
2424
{% if consul_dynamic_bind %}
2525
-bind=$BIND \
2626
{% endif %}
27-
{% if consul_client_address_bind %}
27+
{# In case 'consul_client_address' is set, will only configure it in /etc/consul.conf, not here #}
28+
{% if consul_client_address_bind and not consul_client_address %}
2829
-client=$CLIENT_BIND \
2930
{% endif %}
3031
-config-dir={{ consul_config_dir }} \

0 commit comments

Comments
 (0)