2023-02-21 14:12:51 +00:00
|
|
|
# Deploy `systemd` config for `Alert Manager Webhook Logger`
|
|
|
|
remote_file '/etc/systemd/system.d/webhook.conf' do
|
2020-09-12 17:02:19 +00:00
|
|
|
owner 'root'
|
|
|
|
group 'root'
|
|
|
|
mode '644'
|
|
|
|
|
2023-02-21 14:12:51 +00:00
|
|
|
notifies :restart, 'service[webhook]'
|
2020-09-12 17:02:19 +00:00
|
|
|
end
|
|
|
|
|
2023-02-21 14:12:51 +00:00
|
|
|
service 'webhook' do
|
|
|
|
action [:enable, :start]
|
2020-09-12 17:02:19 +00:00
|
|
|
end
|
|
|
|
|