housekeep-promtail-config-for-vector #14
|
@ -54,28 +54,6 @@ service 'cosul' do
|
|||
action :nothing
|
||||
end
|
||||
|
||||
template '/etc/promtail/syslog.yaml' do
|
||||
owner 'root'
|
||||
group 'root'
|
||||
mode '644'
|
||||
|
||||
variables(LOKIENDPOINT: node['promtail']['lokiendpoint'])
|
||||
|
||||
notifies :restart, 'service[promtail-vector-syslog]'
|
||||
end
|
||||
|
||||
# Deploy `systemd` configuration for `promtail-loki`:
|
||||
remote_file '/etc/systemd/system/promtail-vector-syslog.service' do
|
||||
owner 'root'
|
||||
group 'root'
|
||||
mode '644'
|
||||
end
|
||||
|
||||
# Service setting:
|
||||
service 'promtail-vector-syslog' do
|
||||
action [ :enable, :restart ]
|
||||
end
|
||||
|
||||
# Deploy the `logrotated` configuration:
|
||||
remote_file '/etc/logrotate.d/vector-syslog' do
|
||||
owner 'root'
|
||||
|
|
Loading…
Reference in New Issue