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 19 additions and 0 deletions
Showing only changes of commit 7b745ad4a8 - Show all commits

View File

@ -64,6 +64,25 @@ remote_file '/etc/logrotate.d/loki' do
mode '644' mode '644'
end end
# Deploy the config file for `vector`:
remote_file '/etc/vector/loki.toml' do
owner 'root'
group 'root'
mode '644'
end
# Deploy the `systemd` configuration:
remote_file '/lib/systemd/system/vector-loki.service' do
owner 'root'
group 'root'
mode '644'
end
# Service setting:
service 'vector-loki' do
action [ :enable, :restart ]
end
# Firewall settings here: # Firewall settings here:
%w( 3100/tcp ).each do |p| %w( 3100/tcp ).each do |p|
execute "ufw allow #{p}" do execute "ufw allow #{p}" do