Skip to content
Snippets Groups Projects
Commit bee3b6ff authored by Andreas Kempe's avatar Andreas Kempe
Browse files

hina: add rsyslog server

Add rsyslog with configuration to allow haproxy on the frontends to log
rsync and FTP access.
parent a04d5123
No related merge requests found
/var/log/haproxy.log rsyslogd:rsyslogd 644 3 * $W1D0
# Provides TCP syslog reception
$ModLoad imudp.so
$UDPServerAddress 10.42.254.195
$UDPServerRun 5514
*.* /var/log/haproxy.log
......@@ -9,6 +9,7 @@ class ftp::hina {
'node_exporter',
'py37-certbot-nginx',
'rsync',
'rsyslog',
'tor',
'vsftpd-ssl',
]:
......@@ -95,6 +96,35 @@ class ftp::hina {
purge => false,
}
file { '/usr/local/etc/rsyslog.conf':
ensure => file,
source => 'puppet:///modules/ftp/hina/rsyslog.conf',
owner => 'root',
group => 'wheel',
mode => '0644',
}
user { 'rsyslogd-user':
ensure => present,
name => 'rsyslogd',
home => '/var/empty',
shell => '/usr/sbin/nologin',
}
file_line { 'start rsyslogd':
path => '/etc/rc.local',
line => 'daemon -u rsyslogd rsyslogd -iNONE',
}
file { '/var/log/haproxy.log':
ensure => present,
content => '',
replace => 'no',
owner => 'rsyslogd',
group => 'rsyslogd',
mode => '0644',
}
file { 'ftprsync':
ensure => file,
path => '/usr/local/bin',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment