Deploy `logrotate` config for `snmp_exporter`.
This commit is contained in:
parent
a621b5d255
commit
3c27430e57
|
@ -0,0 +1,13 @@
|
|||
/var/log/snmp_exporter.log
|
||||
{
|
||||
rotate 4
|
||||
weekly
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
delaycompress
|
||||
sharedscripts
|
||||
postrotate
|
||||
/usr/lib/rsyslog/rsyslog-rotate
|
||||
endscript
|
||||
}
|
|
@ -27,6 +27,13 @@ service 'rsyslog' do
|
|||
action :nothing
|
||||
end
|
||||
|
||||
# Deploy `logrotate` config for `snmp_exporter`:
|
||||
remote_file '/etc/logrotate.d/snmp_exporter' do
|
||||
owner 'root'
|
||||
group 'root'
|
||||
mode '644'
|
||||
end
|
||||
|
||||
# Deploy `consul` config:
|
||||
remote_file '/etc/consul.d/service-snmp_exporter.json' do
|
||||
owner 'consul'
|
||||
|
|
Loading…
Reference in New Issue