From 3a843c91532c3c50d6df7f830c0cce15459fcf9b Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Fri, 14 Feb 2025 12:30:46 +0100 Subject: [PATCH] fix typo --- manifests/main/files.pp | 15 +++++++++++++++ templates/rsyslog/10_haproxy.conf.erb | 6 ++++++ 2 files changed, 21 insertions(+) create mode 100644 templates/rsyslog/10_haproxy.conf.erb diff --git a/manifests/main/files.pp b/manifests/main/files.pp index 9d54db5..7995796 100644 --- a/manifests/main/files.pp +++ b/manifests/main/files.pp @@ -142,5 +142,20 @@ class cd_haproxy::main::files ( content => template($hy_504_erb), notify => Service[$hy_service], } + + # make sure rsyslog is logging haproxy logs + + file { '/etc/rsyslog.d/10-haproxy.conf': + ensure => file, + owner => 'root', + group => 'root', + mode => '0644', + selrange => s0, + selrole => object_r, + seltype => syslog_conf_t, + seluser => system_u, + content => template('cd_haproxy/rsyslog/'), + notify => Service['rsyslog'], + } } } diff --git a/templates/rsyslog/10_haproxy.conf.erb b/templates/rsyslog/10_haproxy.conf.erb new file mode 100644 index 0000000..93eda82 --- /dev/null +++ b/templates/rsyslog/10_haproxy.conf.erb @@ -0,0 +1,6 @@ +################################################################################ +##### rsyslog haproxy.conf created by Puppet ##### +################################################################################ + +local0.* /var/log/haproxy.log +local1.* /var/log/haproxy.log