Added block statements (not parsed, simply looped and put into the configuration) for frontends
This commit is contained in:
parent
b485501fcb
commit
776751f9b7
2 changed files with 4 additions and 0 deletions
|
@ -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
|
+ reqadd: an array of reqadd statements. Looped over and put in the configuration, no parsing
|
||||||
+ default_backend: sets the default backend
|
+ default_backend: sets the default backend
|
||||||
+ acls: a list of acls, not parsed, simply looped and put in to the configuration
|
+ 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
|
+ 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:
|
- Backend; Backend(s) is a list of the backends you desire to have in your haproxy setup, per backend you can set:
|
||||||
|
|
|
@ -353,6 +353,9 @@ frontend {{ frontend.get('name', frontend_name) }}
|
||||||
{%- if 'acls' in frontend %}
|
{%- if 'acls' in frontend %}
|
||||||
{{- render_list_of_dictionaries('acl', frontend.acls) }}
|
{{- render_list_of_dictionaries('acl', frontend.acls) }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
{%- if 'blocks' in frontend %}
|
||||||
|
{{- render_list_of_dictionaries('block', frontend.blocks) }}
|
||||||
|
{%- endif %}
|
||||||
{%- if 'monitoruri' in frontend %}
|
{%- if 'monitoruri' in frontend %}
|
||||||
monitor-uri {{ frontend.monitoruri }}
|
monitor-uri {{ frontend.monitoruri }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
Loading…
Reference in a new issue