Verified Commit e421fe96 authored by Giancarlo Razzolini's avatar Giancarlo Razzolini
Browse files

roles/aurweb: Improve the templates and files.

Moved all the systemd files to templates and also made sure every aur user
reference is using the variable. Changed the config to use the variables and
also changed the sshd config to use the ansible variables.
parent a31b408b
......@@ -5,5 +5,5 @@ After=mysqld.service
[Service]
Type=Oneshot
User=aur
User={{ aurweb_user }}
ExecStart=/usr/local/bin/aurweb-aurblup
......@@ -3,7 +3,7 @@ Description=Git gc AUR
[Service]
Type=Oneshot
User=aur
User={{ aurweb_user }}
WorkingDirectory={{ aurweb_git_dir }}
ExecStart=/usr/bin/git gc
Nice=5
......@@ -5,5 +5,5 @@ After=mysqld.service
[Service]
Type=Oneshot
User=aur
User={{ aurweb_user }}
ExecStart=/usr/local/bin/aurweb-mkpkglists
......@@ -5,5 +5,5 @@ After=mysqld.service
[Service]
Type=Oneshot
User=aur
User={{ aurweb_user }}
ExecStart=/usr/local/bin/aurweb-pkgmaint
......@@ -5,5 +5,5 @@ After=mysqld.service
[Service]
Type=Oneshot
User=aur
User={{ aurweb_user }}
ExecStart=/usr/local/bin/aurweb-popupdate
......@@ -5,5 +5,5 @@ After=mysqld.service
[Service]
Type=Oneshot
User=aur
User={{ aurweb_user }}
ExecStart=/usr/local/bin/aurweb-tuvotereminder
[database]
name = {{ aurweb_db }}
user = {{ aurweb_db_user }}
password = {{ aurweb_db_password }}
password = {{ vault_aurweb_db_password }}
[options]
enable-maintenance = 0
localedir = {{ aurweb_dir }}/web/locale/
cache = {{ aurweb_cache }}
cache_pkginfo_ttl = {{ aurweb_cache_pkginfo_ttl }}
[ratelimit]
request_limit = {{ aurweb_request_limt }}
window_length = {{ aurweb_window_length }}
[serve]
repo-path = {{ aurweb_git_dir }}
......
......@@ -120,8 +120,8 @@ StreamLocalBindUnlink yes
# PermitTTY no
# ForceCommand cvs server
Match User aur
Match User {{ aurweb_user }}
PasswordAuthentication no
AuthorizedKeysCommand /usr/local/bin/aurweb-git-auth "%t" "%k"
AuthorizedKeysCommandUser aur
AuthorizedKeysCommandUser {{ aurweb_user }}
AcceptEnv AUR_OVERWRITE
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment