This commit is contained in:
Arne Teuke
2025-02-14 12:30:46 +01:00
parent 244a9f75af
commit 3a843c9153
2 changed files with 21 additions and 0 deletions

View File

@@ -142,5 +142,20 @@ class cd_haproxy::main::files (
content => template($hy_504_erb), content => template($hy_504_erb),
notify => Service[$hy_service], 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'],
}
} }
} }

View File

@@ -0,0 +1,6 @@
################################################################################
##### rsyslog haproxy.conf created by Puppet #####
################################################################################
local0.* /var/log/haproxy.log
local1.* /var/log/haproxy.log