Delete `Promtail` dependency.

This commit is contained in:
Kazuhiro MUSASHI 2024-04-01 17:13:51 +09:00
parent a02a9d8155
commit 65554aa120
1 changed files with 0 additions and 25 deletions

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'