Deploy `systemd` config for `alertmanager`.
This commit is contained in:
parent
8e6c1efc94
commit
b267efe671
|
@ -30,18 +30,15 @@ end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Deploy `supervisord` config:
|
# Deploy `systemd` config for `alertmanager`:
|
||||||
remote_file '/etc/supervisor/conf.d/alertmanager.conf' do
|
remote_file '/etc/systemd/system/alertmanager.service' do
|
||||||
owner 'root'
|
owner 'root'
|
||||||
group 'root'
|
group 'root'
|
||||||
mode '644'
|
mode '644'
|
||||||
|
|
||||||
notifies :restart, 'service[supervisor]'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Restart the `supervisor`:
|
service 'alertmanager' do
|
||||||
service 'supervisor' do
|
action [:enable, :start]
|
||||||
action :nothing
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Firewall settings here:
|
# Firewall settings here:
|
||||||
|
|
Loading…
Reference in New Issue