Deploy `/etc/rsyslog.d/30-alertmanager.conf`.

This commit is contained in:
Kazuhiro MUSASHI 2023-02-16 21:26:51 +09:00
parent b267efe671
commit 15735e5363
1 changed files with 13 additions and 0 deletions

View File

@ -41,6 +41,19 @@ service 'alertmanager' do
action [:enable, :start] action [:enable, :start]
end end
# Deploy `rsyslog` config for `alertmanager`:
remote_file '/etc/rsyslog.d/30-alertmanager.conf' do
owner 'root'
group 'root'
mode '644'
notifies :restart, 'service[rsyslog]'
end
service 'rsyslog' do
action :nothing
end
# Firewall settings here: # Firewall settings here:
%w( 9093/tcp ).each do |p| %w( 9093/tcp ).each do |p|
execute "ufw allow #{p}" do execute "ufw allow #{p}" do