Add new log class and apply to log-test-sto3-1, SC-2522
This commit is contained in:
parent
07377adeeb
commit
32af919cad
2 changed files with 46 additions and 0 deletions
22
global/overlay/etc/puppet/modules/eid/manifests/log.pp
Normal file
22
global/overlay/etc/puppet/modules/eid/manifests/log.pp
Normal file
|
@ -0,0 +1,22 @@
|
|||
# This puppet manifest is used to configure Sweden Connect log collector servers
|
||||
|
||||
# @param environment The environment that the server belongs to. (referenced in compose file)
|
||||
# @param version Version of the docker image to use. (referenced in compose file)
|
||||
# @param service_name The name of the service, ex test.test.swedenconnect.se (referenced in compose file)
|
||||
# @param server_fqdn The FQDN of the server. (referenced in compose file)
|
||||
# @param service_dir The directory where all app related config and files are stored. (referenced in compose file)
|
||||
|
||||
class eid::log (
|
||||
|
||||
ensure_resource('file','/etc/logrotate.d',{
|
||||
ensure => 'directory',
|
||||
mode => '0755'
|
||||
})
|
||||
|
||||
file {'/etc/logrotate.d/eidas_logs':
|
||||
ensure => file,
|
||||
path => '/etc/logrotate.d/eidas_logs',
|
||||
mode => '0644',
|
||||
content => template('eid/log/eidas_logs.erb')
|
||||
}
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
/var/log/eidas_fticks.log
|
||||
/var/log/eidas_stats.log
|
||||
{
|
||||
rotate 30
|
||||
daily
|
||||
missingok
|
||||
notifempty
|
||||
delaycompress
|
||||
compress
|
||||
su root syslog
|
||||
}
|
||||
|
||||
/var/log/eidas_audit.log
|
||||
/var/log/eidas_process.log
|
||||
/var/log/eidas_proxy.log
|
||||
{
|
||||
rotate 7
|
||||
daily
|
||||
missingok
|
||||
notifempty
|
||||
delaycompress
|
||||
compress
|
||||
su root syslog
|
||||
}
|
Loading…
Add table
Reference in a new issue