From 8437578b654b25405e8302b5d464a83191c3ef60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Piotrowski?= Date: Fri, 7 Aug 2015 09:24:18 +0200 Subject: [PATCH] Make rsyslog catch all haproxy requests Change-Id: Ibaee353d19f23b48686f0a0aab269fb1fdfdd0dd Closes-Bug: 1481860 --- .../modular/cluster-haproxy/cluster-haproxy.pp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/deployment/puppet/osnailyfacter/modular/cluster-haproxy/cluster-haproxy.pp b/deployment/puppet/osnailyfacter/modular/cluster-haproxy/cluster-haproxy.pp index 8cf34900a7..9d4ee36ae0 100644 --- a/deployment/puppet/osnailyfacter/modular/cluster-haproxy/cluster-haproxy.pp +++ b/deployment/puppet/osnailyfacter/modular/cluster-haproxy/cluster-haproxy.pp @@ -7,7 +7,8 @@ $service_endpoint = hiera('service_endpoint', '') $primary_controller = hiera('primary_controller') #FIXME(mattymo): Replace with only VIPs for roles assigned to this node -$stats_ipaddresses = delete_undef_values([$management_vip, $database_vip, $service_endpoint, '127.0.0.1']) +$stats_ipaddresses = delete_undef_values([$management_vip, $database_vip, + $service_endpoint, '127.0.0.1']) class { 'cluster::haproxy': haproxy_maxconn => '16000', @@ -17,3 +18,10 @@ class { 'cluster::haproxy': other_networks => direct_networks($network_scheme['endpoints']), stats_ipaddresses => $stats_ipaddresses } + +file_line { 'AddUnixListenSocket': + path => '/etc/rsyslog.d/haproxy.conf', + match => '^\$AddUnixListenSocket /var/lib/haproxy/dev/log', + line => '$AddUnixListenSocket /dev/log', + require => Class['cluster::haproxy'], +}