Skip to content

Commit 7c45506

Browse files
author
Reza Jelveh
committed
make haproxy log address configurable
1 parent f8611a6 commit 7c45506

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

defaults/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ _haproxy_ssl_ciphers: 'ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305
1414

1515
haproxy_global:
1616
log:
17-
- address: /dev/log
17+
- address: "{{ _haproxy_log_address }}"
1818
facility: local0
19-
- address: /dev/log
19+
- address: "{{ _haproxy_log_address }}"
2020
facility: local1
2121
level: notice
2222
chroot: /var/lib/haproxy
@@ -34,7 +34,7 @@ haproxy_global:
3434
haproxy_defaults:
3535
mode: http
3636
log:
37-
- address: /dev/log
37+
- address: "{{ _haproxy_log_address }}"
3838
facility: local1
3939
level: notice
4040
timeout:

vars/Solaris.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
---
22
haproxy_config_dir: /opt/local/etc/haproxy
33
haproxy_config_file: /opt/local/etc/haproxy.cfg
4+
_haproxy_log_address: 127.0.0.1

vars/default.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ _haproxy_config_file: "{{ _haproxy_config_dir }}/haproxy.cfg"
55
_haproxy_package_name: haproxy
66
_haproxy_extra_packages:
77
- socat
8+
9+
_haproxy_log_address: /dev/log

0 commit comments

Comments
 (0)