xoxys.pve_sd/templates/etc/systemd/system/pve_sd.service.j2
Robert Kaussow 83cadc0e32
Some checks failed
continuous-integration/drone/push Build is failing
feat: add option to configure token auth (#2)
Reviewed-on: #2
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
Co-committed-by: Robert Kaussow <mail@thegeeklab.de>
2024-01-24 10:10:43 +01:00

20 lines
434 B
Django/Jinja

#jinja2:lstrip_blocks: True
{{ ansible_managed | comment }}
[Unit]
Description=Promtheus PVE SD
After=network-online.target
Requires=local-fs.target
After=local-fs.target
[Service]
Type=oneshot
EnvironmentFile=/etc/sysconfig/pve_sd
User={{ pve_sd_system_user }}
Group={{ pve_sd_system_user_group }}
WorkingDirectory={{ pve_sd_output_file | dirname }}
ExecStart=/usr/local/bin/prometheus-pve-sd
[Install]
WantedBy=multi-user.target