Skip to content

Commit 9943756

Browse files
authored
fix: only apply consul on consul (#602)
1 parent 331cc0c commit 9943756

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

salt/consul/init.sls

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ consul:
117117
{% endif %}
118118

119119

120+
{% if pillar["dc"] in pillar["consul"]["dcs"] %}
120121
{% for service in pillar["consul"].get("external", []) %}
121122
consul-external-{{ service.service }}:
122123
consul.external_service:
@@ -129,3 +130,4 @@ consul-external-{{ service.service }}:
129130
- pkg: python-requests
130131
- service: consul
131132
{% endfor %}
133+
{% endif %}

0 commit comments

Comments
 (0)