20 lines
415 B
Plaintext
20 lines
415 B
Plaintext
|
#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_user }}
|
||
|
Group={{ pve_sd_group }}
|
||
|
WorkingDirectory={{ pve_sd_output_file | dirname }}
|
||
|
|
||
|
ExecStart=/usr/local/bin/prometheus-pve-sd
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|