Modify the service name to be restarted.
This commit is contained in:
parent
1dbb842a0a
commit
5aa3589d56
|
@ -34,7 +34,7 @@ template '/etc/promtail/snmp_exporter.yaml' do
|
||||||
|
|
||||||
variables(HOSTNAME: node[:hostname], LOKIENDPOINT: node['promtail']['lokiendpoint'])
|
variables(HOSTNAME: node[:hostname], LOKIENDPOINT: node['promtail']['lokiendpoint'])
|
||||||
|
|
||||||
notifies :restart, 'service[promtail-prometheus]'
|
notifies :restart, 'service[promtail-snmp_exporter]'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Deploy the `systemd` configuration:
|
# Deploy the `systemd` configuration:
|
||||||
|
|
Loading…
Reference in New Issue