diff options
Diffstat (limited to 'ansible/roles/haproxy')
| -rw-r--r-- | ansible/roles/haproxy/tasks/start.yml | 2 | ||||
| -rw-r--r-- | ansible/roles/haproxy/templates/haproxy.cfg.j2 | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ansible/roles/haproxy/tasks/start.yml b/ansible/roles/haproxy/tasks/start.yml index 0193350f7..352311d94 100644 --- a/ansible/roles/haproxy/tasks/start.yml +++ b/ansible/roles/haproxy/tasks/start.yml @@ -9,6 +9,7 @@ volumes: - "{{ node_config_directory }}/haproxy/:{{ container_config_directory }}/:ro" - "haproxy_socket:/var/lib/kolla/haproxy/" + - "heka_socket:/var/lib/kolla/heka/" - name: Starting keepalived container kolla_docker: @@ -21,6 +22,7 @@ - "{{ node_config_directory }}/keepalived/:{{ container_config_directory }}/:ro" - "/lib/modules:/lib/modules:ro" - "haproxy_socket:/var/lib/kolla/haproxy/" + - "heka_socket:/var/lib/kolla/heka/" - name: Ensuring latest haproxy config is used command: docker exec haproxy /usr/local/bin/kolla_ensure_haproxy_latest_config diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2 index d45682d31..f56daa854 100644 --- a/ansible/roles/haproxy/templates/haproxy.cfg.j2 +++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2 @@ -1,11 +1,14 @@ global daemon + log /var/lib/kolla/heka/log local0 maxconn 4000 stats socket /var/lib/kolla/haproxy/haproxy.sock defaults + log global mode http option redispatch + option httplog retries 3 timeout http-request 10s timeout queue 1m @@ -25,6 +28,7 @@ listen stats {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4'] {% if enable_mariadb | bool %} listen mariadb mode tcp + option tcplog option tcpka option mysql-check user haproxy bind {{ kolla_internal_address }}:{{ mariadb_port }} |
