loki-maintainance #13

Merged
kazu634 merged 10 commits from loki-maintainance into main 2024-04-03 06:43:55 +00:00
1 changed files with 0 additions and 25 deletions
Showing only changes of commit 65554aa120 - Show all commits

View File

@ -45,31 +45,6 @@ service 'consul' do
action :nothing
end
# Depoy `promtail` configuration for `loki`:
HOSTNAME = run_command('uname -n').stdout.chomp
template '/etc/promtail/loki.yaml' do
owner 'root'
group 'root'
mode '644'
variables(HOSTNAME: HOSTNAME, LOKIENDPOINT: node['promtail']['lokiendpoint'])
notifies :restart, 'service[promtail-loki]'
end
# Deploy `systemd` configuration for `promtail-loki`:
remote_file '/etc/systemd/system/promtail-loki.service' do
owner 'root'
group 'root'
mode '644'
end
# Service setting:
service 'promtail-loki' do
action [ :enable, :restart ]
end
remote_file '/etc/rsyslog.d/30-loki.conf' do
owner 'root'
group 'root'