2021-07-12 20:38:50 +00:00
|
|
|
#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
|
2024-01-24 09:00:35 +00:00
|
|
|
User={{ pve_sd_system_user }}
|
|
|
|
Group={{ pve_sd_system_user_group }}
|
2021-07-12 20:38:50 +00:00
|
|
|
WorkingDirectory={{ pve_sd_output_file | dirname }}
|
|
|
|
|
|
|
|
ExecStart=/usr/local/bin/prometheus-pve-sd
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|