New version of salt-formula from Saltstack
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 line
281B

  1. haproxy_config:
  2. file.managed:
  3. - name: /tmp/haproxy_config
  4. - contents: |
  5. {%- for server, addrs in salt['mine.get']('roles:salt:master', 'grains.items', expr_form='pillar').items() %}
  6. server {{ server }} {{ addrs[0] }}:80 check
  7. {%- endfor %}
  8. - template: jinja