Skip to content

Commit

Permalink
Merge pull request #57 from TheMonkeyBrain/add_ssl-default-server
Browse files Browse the repository at this point in the history
Added support for ssl-default-server-*
  • Loading branch information
goldyfruit authored May 27, 2022
2 parents 0cd0d8c + b61eb4d commit 875c6ec
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 8 deletions.
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

0 comments on commit 875c6ec

Please sign in to comment.