Skip to content

Commit

Permalink
fix(bugs): revert to yaml import (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee authored Jul 25, 2024
1 parent 31774cf commit 9667e46
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pillar/base/haproxy.sls
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{% import_yaml 'bugs.sls' as bugs_data %}

haproxy:
services:
buildbot-master:
Expand Down Expand Up @@ -67,12 +69,12 @@ haproxy:
verify_host: planet.psf.io
check: "HEAD / HTTP/1.1\\r\\nHost:\\ planet.psf.io"

{% for tracker, config in salt["pillar.get"]("bugs:trackers", {}).items() %}
{% for tracker, config in bugs_data.get('bugs', {}).get('trackers', {}).items() %}
roundup-{{ tracker }}:
domains:
- {{ config['server_name'] }}
- {{ config.server_name }}
verify_host: bugs.psf.io
check: "HEAD / HTTP/1.1\\r\\nHost:\\ {{ config['server_name'] }}"
check: "HEAD / HTTP/1.1\\r\\nHost:\\ {{ config.server_name }}"
{% endfor %}

moin:
Expand Down

0 comments on commit 9667e46

Please sign in to comment.