Skip to content

Commit

Permalink
Merge pull request #80 from MonolithProjects/master
Browse files Browse the repository at this point in the history
feat: add global option server-state-file
  • Loading branch information
goldyfruit authored Jun 14, 2024
2 parents 4ff3612 + 60f27d6 commit 9eb263c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ haproxy_global_logs:
haproxy_global_tunes:
- tune.ssl.default-dh-param: 2048
# haproxy_global_server_state_base: current
# haproxy_global_server_state_file: /tmp/server_state
# haproxy_global_toggles: []

# Default
Expand Down
3 changes: 3 additions & 0 deletions templates/etc/haproxy/haproxy-global.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ global
{% if haproxy_global_server_state_base is defined %}
server-state-base {{ haproxy_global_server_state_base }}
{% endif %}
{% if haproxy_global_server_state_file is defined %}
server-state-file {{ haproxy_global_server_state_file }}
{% endif %}
{% if haproxy_global_toggles is defined and haproxy_global_toggles | length %}
{% for toggle in haproxy_global_toggles %}
{{ toggle }}
Expand Down

0 comments on commit 9eb263c

Please sign in to comment.