Skip to content

Commit 9667e46

Browse files
authored
fix(bugs): revert to yaml import (#404)
1 parent 31774cf commit 9667e46

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pillar/base/haproxy.sls

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{% import_yaml 'bugs.sls' as bugs_data %}
2+
13
haproxy:
24
services:
35
buildbot-master:
@@ -67,12 +69,12 @@ haproxy:
6769
verify_host: planet.psf.io
6870
check: "HEAD / HTTP/1.1\\r\\nHost:\\ planet.psf.io"
6971

70-
{% for tracker, config in salt["pillar.get"]("bugs:trackers", {}).items() %}
72+
{% for tracker, config in bugs_data.get('bugs', {}).get('trackers', {}).items() %}
7173
roundup-{{ tracker }}:
7274
domains:
73-
- {{ config['server_name'] }}
75+
- {{ config.server_name }}
7476
verify_host: bugs.psf.io
75-
check: "HEAD / HTTP/1.1\\r\\nHost:\\ {{ config['server_name'] }}"
77+
check: "HEAD / HTTP/1.1\\r\\nHost:\\ {{ config.server_name }}"
7678
{% endfor %}
7779

7880
moin:

0 commit comments

Comments
 (0)