loki-maintainance #13
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue