blob: 5278cdff34b45b46153b3a27d1ede9bebe9baa6c [file] [log] [blame]
haproxy_config:
file.managed:
- name: /tmp/haproxy_config
- contents: |
{%- for server, addrs in salt['mine.get']('roles:salt:master', 'grains.items', expr_form='pillar').items() %}
server {{ server }} {{ addrs[0] }}:80 check
{%- endfor %}
- template: jinja