chore: minor change
This commit is contained in:
parent
6ca8c29386
commit
f1744f2bc8
2 changed files with 22 additions and 22 deletions
|
@ -26,6 +26,6 @@ provisioner:
|
||||||
lint: |
|
lint: |
|
||||||
set -e
|
set -e
|
||||||
yamllint .
|
yamllint .
|
||||||
ansible-lint
|
ansible-lint .
|
||||||
verifier:
|
verifier:
|
||||||
name: testinfra
|
name: testinfra
|
||||||
|
|
|
@ -3,41 +3,41 @@
|
||||||
global
|
global
|
||||||
{% for key, value in haproxy_full_global.items() %}
|
{% for key, value in haproxy_full_global.items() %}
|
||||||
{% if value is sameas true %}
|
{% if value is sameas true %}
|
||||||
{{ key }}
|
{{ key }}
|
||||||
{% elif value is iterable and value is not string %}
|
{% elif value is iterable and value is not string %}
|
||||||
{% for option in value %}
|
{% for option in value %}
|
||||||
{{ key }} {{ option }}
|
{{ key }} {{ option }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ key }} {{ value }}
|
{{ key }} {{ value }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
defaults
|
defaults
|
||||||
{% for key, value in haproxy_full_defaults.items() %}
|
{% for key, value in haproxy_full_defaults.items() %}
|
||||||
{% if value is sameas true %}
|
{% if value is sameas true %}
|
||||||
{{ key }}
|
{{ key }}
|
||||||
{% elif value is iterable and value is not string %}
|
{% elif value is iterable and value is not string %}
|
||||||
{% for option in value %}
|
{% for option in value %}
|
||||||
{{ key }} {{ option }}
|
{{ key }} {{ option }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ key }} {{ value }}
|
{{ key }} {{ value }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
listen stats
|
listen stats
|
||||||
{% for key, value in haproxy_full_listen_stats.items() %}
|
{% for key, value in haproxy_full_listen_stats.items() %}
|
||||||
{% if key == "bind" %}
|
{% if key == "bind" %}
|
||||||
bind {{ value["ip"] }}:{{ value["port"] }}
|
bind {{ value["ip"] }}:{{ value["port"] }}
|
||||||
{% elif value is sameas true %}
|
{% elif value is sameas true %}
|
||||||
{{ key }}
|
{{ key }}
|
||||||
{% elif value is iterable and value is not string %}
|
{% elif value is iterable and value is not string %}
|
||||||
{% for option in value %}
|
{% for option in value %}
|
||||||
{{ key }} {{ option }}
|
{{ key }} {{ option }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ key }} {{ value }}
|
{{ key }} {{ value }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
@ -46,10 +46,10 @@ resolvers {{ resolver }}
|
||||||
{% for key, value in config.items() %}
|
{% for key, value in config.items() %}
|
||||||
{% if value is iterable and value is not string %}
|
{% if value is iterable and value is not string %}
|
||||||
{% for option in value %}
|
{% for option in value %}
|
||||||
{{ key }} {{ option }}
|
{{ key }} {{ option }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ key }} {{ value }}
|
{{ key }} {{ value }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ resolvers {{ resolver }}
|
||||||
{% for http_error_name, config in haproxy_http_errors.items() %}
|
{% for http_error_name, config in haproxy_http_errors.items() %}
|
||||||
http-errors {{ http_error_name }}
|
http-errors {{ http_error_name }}
|
||||||
{% for status_code, file in config.items() %}
|
{% for status_code, file in config.items() %}
|
||||||
errorfile {{ status_code }} /etc/haproxy/errors/{{ file }}.http
|
errorfile {{ status_code }} /etc/haproxy/errors/{{ file }}.http
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -66,10 +66,10 @@ userlist {{ userlist }}
|
||||||
{% for key, value in config.items() %}
|
{% for key, value in config.items() %}
|
||||||
{% if value is iterable and value is not string %}
|
{% if value is iterable and value is not string %}
|
||||||
{% for option in value %}
|
{% for option in value %}
|
||||||
{{ key }} {{ option }}
|
{{ key }} {{ option }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ key }} {{ value }}
|
{{ key }} {{ value }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
@ -78,15 +78,15 @@ userlist {{ userlist }}
|
||||||
frontend {{ frontend }}
|
frontend {{ frontend }}
|
||||||
{% for key, value in config.items() %}
|
{% for key, value in config.items() %}
|
||||||
{% if key == "bind" %}
|
{% if key == "bind" %}
|
||||||
bind {{ value["ip"] }}:{{ value["port"] }}{% if value["ssl"] is defined %} ssl{% if value["ssl"]["ciphers"] is defined %} ciphers {{ value["ssl"]["ciphers"]|join(':') }}{% endif %}{% if value["ssl"]["crt"]%} crt {% if value["ssl"]["crt"] is string %}{{ value["ssl"]["crt"] }}{% else %}{{ value["ssl"]["crt"]|join(' crt ') }}{% endif %}{% endif %}
|
bind {{ value["ip"] }}:{{ value["port"] }}{% if value["ssl"] is defined %} ssl{% if value["ssl"]["ciphers"] is defined %} ciphers {{ value["ssl"]["ciphers"]|join(':') }}{% endif %}{% if value["ssl"]["crt"]%} crt {% if value["ssl"]["crt"] is string %}{{ value["ssl"]["crt"] }}{% else %}{{ value["ssl"]["crt"]|join(' crt ') }}{% endif %}{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% elif value is iterable and value is not string %}
|
{% elif value is iterable and value is not string %}
|
||||||
{% for option in value %}
|
{% for option in value %}
|
||||||
{{ key }} {{ option }}
|
{{ key }} {{ option }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ key }} {{ value }}
|
{{ key }} {{ value }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
@ -96,13 +96,13 @@ frontend {{ frontend }}
|
||||||
backend {{ backend }}
|
backend {{ backend }}
|
||||||
{% for key, value in config.items() %}
|
{% for key, value in config.items() %}
|
||||||
{% if value is sameas true %}
|
{% if value is sameas true %}
|
||||||
{{ key }}
|
{{ key }}
|
||||||
{% elif value is iterable and value is not string %}
|
{% elif value is iterable and value is not string %}
|
||||||
{% for option in value %}
|
{% for option in value %}
|
||||||
{{ key }} {{ option }}
|
{{ key }} {{ option }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ key }} {{ value }}
|
{{ key }} {{ value }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue