Deploy `systemd` config for `alertmanager`.
This commit is contained in:
parent
8e6c1efc94
commit
b267efe671
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue