Merge pull request #38 from bneqld/frontends_block-statements

Frontends block statements
This commit is contained in:
Forrest 2015-12-07 01:58:11 -08:00
commit e0fb756ec4
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 %}