summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2023-01-29 19:38:50 +0100
committerGeorg Pfuetzenreuter2023-01-29 19:38:50 +0100
commit66bb3028e77b5a46547bcd213788cc655e743d71 (patch)
treeb7b91241f99ed8d3f0080549b0da10e728b6df51
parent4923b43fed1aa3fa8a696cd44b12d0a3ec554f6c (diff)
downloadsalt-netbox-roleproxy-66bb3028e77b5a46547bcd213788cc655e743d71.tar.gz
salt-netbox-roleproxy-66bb3028e77b5a46547bcd213788cc655e743d71.tar.bz2
salt-netbox-roleproxy-66bb3028e77b5a46547bcd213788cc655e743d71.zip
Add service user definition
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
-rw-r--r--roleproxy.service3
-rw-r--r--system-user-roleproxy.conf3
2 files changed, 5 insertions, 1 deletions
diff --git a/roleproxy.service b/roleproxy.service
index 2c53b28..6302c0a 100644
--- a/roleproxy.service
+++ b/roleproxy.service
@@ -5,7 +5,8 @@
Description=Salt NetBox Role Proxy
[Service]
-User=roleproxy
+User=_roleproxy
+Group=_roleproxy
EnvironmentFile=/etc/sysconfig/roleproxy
ExecStart=/usr/local/bin/roleproxy.py
ProtectSystem=strict
diff --git a/system-user-roleproxy.conf b/system-user-roleproxy.conf
new file mode 100644
index 0000000..2117739
--- /dev/null
+++ b/system-user-roleproxy.conf
@@ -0,0 +1,3 @@
+# This file is shipped as part of the salt-netbox-roleproxy package.
+# Author: Georg Pfuetzenreuter <mail+rpm@georg-pfuetzenreuter.net>
+u _roleproxy - "Salt NetBox Role Proxy" /var/lib/empty -