mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
Move the user used by the git-daemon service to be a variable
This commit is contained in:
@@ -23,6 +23,7 @@ git_port: 9418
|
||||
git_server: /usr/libexec/git-core/git-daemon
|
||||
git_server_args: --export-all --syslog --inetd --verbose
|
||||
git_basepath: /srv/git/repositories
|
||||
git_daemon_user: git
|
||||
|
||||
# For the MOTD
|
||||
csi_security_category: Low
|
||||
|
||||
@@ -24,6 +24,7 @@ git_port: 9418
|
||||
git_server: /usr/libexec/git-core/git-daemon
|
||||
git_server_args: --export-all --syslog --inetd --verbose
|
||||
git_basepath: /srv/git/repositories
|
||||
git_daemon_user: git
|
||||
|
||||
# For the MOTD
|
||||
csi_security_category: Low
|
||||
|
||||
@@ -19,6 +19,7 @@ git_port: 9418
|
||||
git_server: /usr/libexec/git-core/git-daemon
|
||||
git_server_args: --export-all --syslog --inetd --verbose
|
||||
git_basepath: /srv/git/rpms
|
||||
git_daemon_user: nobody
|
||||
|
||||
clamscan_mailto: admin@fedoraproject.org
|
||||
clamscan_paths:
|
||||
|
||||
@@ -19,6 +19,7 @@ git_port: 9418
|
||||
git_server: /usr/libexec/git-core/git-daemon
|
||||
git_server_args: --export-all --syslog --inetd --verbose
|
||||
git_basepath: /srv/git/rpms
|
||||
git_daemon_user: nodoby
|
||||
|
||||
clamscan_mailto: admin@fedoraproject.org
|
||||
clamscan_paths:
|
||||
|
||||
@@ -4,6 +4,6 @@ Documentation=man:git-daemon(1)
|
||||
Wants=git.socket
|
||||
|
||||
[Service]
|
||||
User=nobody
|
||||
User={{ git_daemon_user }}
|
||||
ExecStart=/usr/libexec/git-core/git-daemon --base-path={{ git_basepath }} --export-all --user-path=public_git --syslog --inetd --verbose
|
||||
StandardInput=socket
|
||||
|
||||
Reference in New Issue
Block a user