uwsgi: move run directories (#55533)

This commit is contained in:
Emmanuel Cazenave 2021-07-15 13:10:59 +02:00
parent b327b53a32
commit 080ed5f2a9
4 changed files with 21 additions and 1 deletions

View File

@ -19,4 +19,5 @@
certs_dir: "{{devinst_share}}/certs"
themes_dir: "{{devinst_share}}/themes"
venv_py3_bin: "{{venv_py3}}/bin"
base_run_dir: "{{venv_py3}}/run"
venv_py3_python: "{{venv_py3_bin}}/python"

View File

@ -139,6 +139,20 @@
regexp: '/etc/{{project_name}}/'
replace: '{{app_settings_dir}}/settings.d/'
- name: "{{app_name}} - change py-tracebacker option in uwsgi configuration file"
ini_file:
path: "{{uwsgi_settings}}"
section: uwsgi
option: py-tracebacker
value: "{{run_dir}}/py-tracebacker.sock."
- name: "{{app_name}} - change stats option in uwsgi configuration file"
ini_file:
path: "{{uwsgi_settings}}"
section: uwsgi
option: stats
value: "{{run_dir}}/stats.sock"
- name: "{{app_name}} - uwsgi server supervisor configuration"
template:
src: server-uwsgi-supervisor.j2

View File

@ -1,5 +1,5 @@
log_dir: "/var/log/{{server_app_name}}"
run_dir: "/run/{{project_name}}"
run_dir: "{{base_run_dir}}/{{project_name}}"
state_dir: "/var/lib/{{project_name}}"
spooler_dir: "{{state_dir}}/spooler"
tenants_dir: "/var/lib/{{project_name}}/tenants"

View File

@ -98,6 +98,11 @@
path: "{{publik_settings}}"
state: directory
- name: "create base run directory"
file:
path: "{{base_run_dir}}"
state: directory
- name: create getlasso scripts
template:
src: getlasso.j2