Deploy `logrotate` config for `snmp_exporter`.

This commit is contained in:
Kazuhiro MUSASHI 2023-02-05 21:54:19 +09:00
parent a621b5d255
commit 3c27430e57
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,13 @@
/var/log/snmp_exporter.log
{
rotate 4
weekly
missingok
notifempty
compress
delaycompress
sharedscripts
postrotate
/usr/lib/rsyslog/rsyslog-rotate
endscript
}

View File

@ -27,6 +27,13 @@ service 'rsyslog' do
action :nothing action :nothing
end 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: # Deploy `consul` config:
remote_file '/etc/consul.d/service-snmp_exporter.json' do remote_file '/etc/consul.d/service-snmp_exporter.json' do
owner 'consul' owner 'consul'