Added block statements (not parsed, simply looped and put in to the configuration) for frontends

This commit is contained in:
Bernd Fischbach 2015-12-07 10:03:59 +01:00
parent a5bae64325
commit 76bc908e3e
2 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,7 @@ Currently, only a handful of options can be set using the pillar:
+ reqadd: an array of reqadd statements. Looped over and put in the configuration, no parsing
+ default_backend: sets the default backend
+ acls: a list of acls, not parsed, simply looped and put in to the configuration
+ blocks: a list of block statements, not parsed, simply looped and put in to the configuration
+ use_backends: a list of use_backend statements, looped over, not parsed
- Backend; Backend(s) is a list of the backends you desire to have in your haproxy setup, per backend you can set:

View File

@ -353,6 +353,9 @@ frontend {{ frontend.get('name', frontend_name) }}
{%- if 'acls' in frontend %}
{{- render_list_of_dictionaries('acl', frontend.acls) }}
{%- endif %}
{%- if 'blocks' in frontend %}
{{- render_list_of_dictionaries('block', frontend.blocks) }}
{%- endif %}
{%- if 'monitoruri' in frontend %}
monitor-uri {{ frontend.monitoruri }}
{%- endif %}