housekeep-promtail-config-for-vector #14

Merged
kazu634 merged 5 commits from housekeep-promtail-config-for-vector into main 2024-04-03 07:11:24 +00:00
1 changed files with 0 additions and 22 deletions
Showing only changes of commit e14a0072c1 - Show all commits

View File

@ -54,28 +54,6 @@ service 'cosul' do
action :nothing action :nothing
end 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: # Deploy the `logrotated` configuration:
remote_file '/etc/logrotate.d/vector-syslog' do remote_file '/etc/logrotate.d/vector-syslog' do
owner 'root' owner 'root'