Merge pull request #25 from loopline-systems/master
Adding new values to global section, typo fix + natural server ordering
This commit is contained in:
commit
204809d308
1 changed files with 11 additions and 2 deletions
|
@ -48,6 +48,15 @@ global
|
||||||
{%- if 'tune' in salt['pillar.get']('haproxy:global', {}) %}
|
{%- if 'tune' in salt['pillar.get']('haproxy:global', {}) %}
|
||||||
{{- render_list_of_dictionaries('tune', salt['pillar.get']('haproxy:global:tune'), ' ','.') }}
|
{{- render_list_of_dictionaries('tune', salt['pillar.get']('haproxy:global:tune'), ' ','.') }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
{%- if 'tune.ssl.default-dh-param' in salt['pillar.get']('haproxy:global', {}) %}
|
||||||
|
{{- render_list_of_dictionaries('tune.ssl.default-dh-param', salt['pillar.get']('haproxy:global:tune.ssl.default-dh-param'), ' ','.') }}
|
||||||
|
{%- endif %}
|
||||||
|
{%- if 'ca-base' in salt['pillar.get']('haproxy:global', {}) %}
|
||||||
|
{{- render_list_of_dictionaries('ca-base', salt['pillar.get']('haproxy:global:ca-base'), ' ','.') }}
|
||||||
|
{%- endif %}
|
||||||
|
{%- if 'crt-base' in salt['pillar.get']('haproxy:global', {}) %}
|
||||||
|
{{- render_list_of_dictionaries('crt-base', salt['pillar.get']('haproxy:global:crt-base'), ' ','.') }}
|
||||||
|
{%- endif %}
|
||||||
{%- if 'ssl-default-bind-ciphers' in salt['pillar.get']('haproxy:global', {}) %}
|
{%- if 'ssl-default-bind-ciphers' in salt['pillar.get']('haproxy:global', {}) %}
|
||||||
{{- render_list_of_dictionaries('ssl-default-bind-ciphers', salt['pillar.get']('haproxy:global:ssl-default-bind-ciphers')) }}
|
{{- render_list_of_dictionaries('ssl-default-bind-ciphers', salt['pillar.get']('haproxy:global:ssl-default-bind-ciphers')) }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
@ -274,7 +283,7 @@ listen {{ listener[1].get('name', listener[0]) }}
|
||||||
default-server {%- for option, value in listener[1].defaultserver.iteritems() %} {{ ' '.join((option, value|string, '')) }} {%- endfor %}
|
default-server {%- for option, value in listener[1].defaultserver.iteritems() %} {{ ' '.join((option, value|string, '')) }} {%- endfor %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if 'servers' in listener[1] %}
|
{%- if 'servers' in listener[1] %}
|
||||||
{%- for server in listener[1].servers.iteritems() %}
|
{%- for server in listener[1].servers.iteritems()|sort %}
|
||||||
server {{ server[1].get('name',server[0]) }} {{ server[1].host }}:{{ server[1].port }} {{ server[1].check }} {{ server[1].get('extra', '') }}
|
server {{ server[1].get('name',server[0]) }} {{ server[1].host }}:{{ server[1].port }} {{ server[1].check }} {{ server[1].get('extra', '') }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
@ -448,7 +457,7 @@ backend {{ backend[1].get('name',backend[0]) }}
|
||||||
default-server {%- for option, value in backend[1].defaultserver.iteritems() %} {{ ' '.join((option, value|string, '')) }} {%- endfor %}
|
default-server {%- for option, value in backend[1].defaultserver.iteritems() %} {{ ' '.join((option, value|string, '')) }} {%- endfor %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if 'servers' in backend[1] %}
|
{%- if 'servers' in backend[1] %}
|
||||||
{%- for server in backend[1].servers.iteritems() %}
|
{%- for server in backend[1].servers.iteritems()|sort %}
|
||||||
server {{ server[1].get('name',server[0]) }} {{ server[1].host }}:{{ server[1].port }} {{ server[1].check }} {{ server[1].get('extra', '') }}
|
server {{ server[1].get('name',server[0]) }} {{ server[1].host }}:{{ server[1].port }} {{ server[1].check }} {{ server[1].get('extra', '') }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
Loading…
Reference in a new issue