Merge pull request 'Deploy `logrotate` config for `consul-template`.' (#17) from log-rotation-for-consul-template into master
Reviewed-on: #17
This commit is contained in:
commit
907b2363ea
|
@ -0,0 +1,13 @@
|
|||
/var/log/consul-template.log
|
||||
{
|
||||
rotate 4
|
||||
weekly
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
delaycompress
|
||||
sharedscripts
|
||||
postrotate
|
||||
/usr/lib/rsyslog/rsyslog-rotate
|
||||
endscript
|
||||
}
|
|
@ -33,6 +33,12 @@ remote_file '/etc/rsyslog.d/30-consul-template.conf' do
|
|||
notifies :restart, 'service[rsyslog]', :immediately
|
||||
end
|
||||
|
||||
remote_file '/etc/logrotate.d/consul-template' do
|
||||
owner 'root'
|
||||
group 'root'
|
||||
mode '0644'
|
||||
end
|
||||
|
||||
service 'rsyslog' do
|
||||
action [ :nothing ]
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue