ansible/roles/promtail/templates/promtail.service.j2

20 lines
388 B
Plaintext
Raw Permalink Normal View History

2022-08-30 12:50:35 +00:00
{{ ansible_managed | comment }}
[Unit]
2024-04-14 22:45:59 +00:00
Description=Promtail service
After=network.target
2022-08-30 12:50:35 +00:00
[Service]
Type=simple
User={{ promtail_user }}
ExecStart={{ promtail_bin_path }}/promtail \
2024-04-14 22:45:59 +00:00
-config.file {{ promtail_config_path }} \
-client.external-labels=host=%l
2022-08-30 12:50:35 +00:00
WorkingDirectory={{ promtail_var_path }}
2024-04-14 22:45:59 +00:00
TimeoutSec = 60
Restart=on-failure
RestartSec=2
2022-08-30 12:50:35 +00:00
[Install]
WantedBy=multi-user.target