Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for ssl-default-server-* #57

Merged
merged 2 commits into from
May 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,12 @@ haproxy_global_gid:
haproxy_global_pidfile: /var/run/haproxy.pid
haproxy_global_ca_base:
haproxy_global_crt_base:
haproxy_global_ssl_options:
haproxy_global_ssl_ciphers:
haproxy_global_ssl_bind_options:
haproxy_global_ssl_bind_ciphers:
haproxy_global_ssl_bind_ciphersuites:
haproxy_global_ssl_server_options:
haproxy_global_ssl_server_ciphers:
haproxy_global_ssl_server_ciphersuites:
haproxy_global_ssl_server_verify:
haproxy_global_stats: []
haproxy_global_description:
Expand Down
8 changes: 6 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,12 @@ haproxy_global_user: haproxy
haproxy_global_pidfile: /var/run/haproxy.pid
# haproxy_global_ca_base:
# haproxy_global_crt_base:
# haproxy_global_ssl_options:
# haproxy_global_ssl_ciphers:
# haproxy_global_ssl_bind_options:
# haproxy_global_ssl_bind_ciphers:
# haproxy_global_ssl_bind_ciphersuites:
# haproxy_global_ssl_server_options:
# haproxy_global_ssl_server_ciphers:
# haproxy_global_ssl_server_ciphersuites:
# haproxy_global_ssl_server_verify:
haproxy_global_stats: []
# haproxy_global_description:
Expand Down
20 changes: 16 additions & 4 deletions templates/etc/haproxy/haproxy-global.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,23 @@ global
{% if haproxy_global_crt_base is defined and haproxy_global_crt_base|length %}
crt-base {{ haproxy_global_crt_base }}
{% endif %}
{% if haproxy_global_ssl_options is defined and haproxy_global_ssl_options|length %}
ssl-default-bind-options {{ haproxy_global_ssl_options }}
{% if haproxy_global_ssl_bind_options is defined and haproxy_global_ssl_bind_options|length %}
ssl-default-bind-options {{ haproxy_global_ssl_bind_options }}
{% endif %}
{% if haproxy_global_ssl_ciphers is defined and haproxy_global_ssl_ciphers|length %}
ssl-default-bind-ciphers {{ haproxy_global_ssl_ciphers }}
{% if haproxy_global_ssl_bind_ciphers is defined and haproxy_global_ssl_bind_ciphers|length %}
ssl-default-bind-ciphers {{ haproxy_global_ssl_bind_ciphers }}
{% endif %}
{% if haproxy_global_ssl_bind_ciphersuites is defined and haproxy_global_ssl_bind_ciphersuites|length %}
ssl-default-bind-ciphersuites {{ haproxy_global_ssl_bind_ciphersuites }}
{% endif %}
{% if haproxy_global_ssl_server_options is defined and haproxy_global_ssl_server_options|length %}
ssl-default-server-options {{ haproxy_global_ssl_server_options }}
{% endif %}
{% if haproxy_global_ssl_server_ciphers is defined and haproxy_global_ssl_server_ciphers|length %}
ssl-default-server-ciphers {{ haproxy_global_ssl_server_ciphers }}
{% endif %}
{% if haproxy_global_ssl_server_ciphersuites is defined and haproxy_global_ssl_server_ciphersuites|length %}
ssl-default-server-ciphersuites {{ haproxy_global_ssl_server_ciphersuites }}
{% endif %}
{% if haproxy_global_ssl_server_verify is defined and haproxy_global_ssl_server_verify|length %}
ssl-server-verify {{ haproxy_global_ssl_server_verify }}
Expand Down