2023-02-21 14:12:51 +00:00
|
|
|
# Deploy `systemd` config for `Alert Manager Webhook Logger`
|
2023-02-22 14:51:07 +00:00
|
|
|
remote_file '/etc/systemd/system/webhook.service' 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
|
|
|
|
|
2023-02-21 14:44:49 +00:00
|
|
|
# Deploy `rsyslog` config for `Alert Manager Webhook Logger`:
|
|
|
|
remote_file '/etc/rsyslog.d/30-webhook.conf' do
|
|
|
|
owner 'root'
|
|
|
|
group 'root'
|
|
|
|
mode '0644'
|
|
|
|
|
|
|
|
notifies :restart, 'service[rsyslog]'
|
|
|
|
end
|
|
|
|
|
|
|
|
service 'rsyslog' do
|
|
|
|
action :nothing
|
|
|
|
end
|
2023-02-21 14:46:09 +00:00
|
|
|
|
|
|
|
# Deploy `logrotate` config for `Alert Manager Webhook Logger`:
|
|
|
|
remote_file '/etc/logrotate.d/webhook' do
|
|
|
|
owner 'root'
|
|
|
|
group 'root'
|
|
|
|
mode '0644'
|
|
|
|
end
|