1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-14 11:47:32 +00:00

rtorrent_exporter: create service user

This commit is contained in:
Matt Layher 2016-09-05 16:15:55 -04:00
parent 81b8b0cd30
commit a2cbbb1a82
No known key found for this signature in database
GPG key ID: 77BFE531397EDE94
2 changed files with 12 additions and 4 deletions

View file

@ -7,6 +7,14 @@
dest: "/usr/local/bin/rtorrent_exporter"
checksum: "sha256:{{ rtorrent_exporter_sha256 }}"
- name: create rtorrent_exporter user
tags:
- rtorrent_exporter
user:
name: rtorrent_exporter
shell: "/bin/false"
comment: "rtorrent_exporter service user"
- name: check if rtorrent_exporter service exists
tags:
- rtorrent_exporter
@ -27,8 +35,8 @@
- rtorrent_exporter
file:
path: "/usr/local/bin/rtorrent_exporter"
owner: prometheus
group: prometheus
owner: rtorrent_exporter
group: rtorrent_exporter
mode: 0755
- name: create rtorrent_exporter systemd unit

View file

@ -6,8 +6,8 @@ Wants=network-online.target
After=network-online.target
[Service]
User=prometheus
Group=prometheus
User=rtorrent_exporter
Group=rtorrent_exporter
Type=simple
ExecStart=/usr/local/bin/rtorrent_exporter \
-rtorrent.addr {{ rtorrent_exporter_scgi }}