Deploy `systemd` config for `alertmanager`.

This commit is contained in:
Kazuhiro MUSASHI 2023-02-16 21:25:49 +09:00
parent 8e6c1efc94
commit b267efe671
1 changed files with 4 additions and 7 deletions

View File

@ -30,18 +30,15 @@ end
end
end
# Deploy `supervisord` config:
remote_file '/etc/supervisor/conf.d/alertmanager.conf' do
# Deploy `systemd` config for `alertmanager`:
remote_file '/etc/systemd/system/alertmanager.service' do
owner 'root'
group 'root'
mode '644'
notifies :restart, 'service[supervisor]'
end
# Restart the `supervisor`:
service 'supervisor' do
action :nothing
service 'alertmanager' do
action [:enable, :start]
end
# Firewall settings here: