Projet

Général

Profil

0001-uwsgi-move-run-directories-55533.patch

Emmanuel Cazenave, 15 juillet 2021 14:25

Télécharger (2,41 ko)

Voir les différences:

Subject: [PATCH] uwsgi: move run directories (#55533)

 install.yml                    |  1 +
 roles/app-setup/tasks/main.yml | 14 ++++++++++++++
 roles/app-setup/vars/main.yml  |  2 +-
 roles/base/tasks/main.yml      |  5 +++++
 4 files changed, 21 insertions(+), 1 deletion(-)
install.yml
19 19
    certs_dir: "{{devinst_share}}/certs"
20 20
    themes_dir: "{{devinst_share}}/themes"
21 21
    venv_py3_bin: "{{venv_py3}}/bin"
22
    base_run_dir: "{{venv_py3}}/run"
22 23
    venv_py3_python: "{{venv_py3_bin}}/python"
roles/app-setup/tasks/main.yml
139 139
    regexp: '/etc/{{project_name}}/'
140 140
    replace: '{{app_settings_dir}}/settings.d/'
141 141

  
142
- name: "{{app_name}} - change py-tracebacker option in uwsgi configuration file"
143
  ini_file:
144
    path: "{{uwsgi_settings}}"
145
    section: uwsgi
146
    option: py-tracebacker
147
    value: "{{run_dir}}/py-tracebacker.sock."
148

  
149
- name: "{{app_name}} - change stats option in uwsgi configuration file"
150
  ini_file:
151
    path: "{{uwsgi_settings}}"
152
    section: uwsgi
153
    option: stats
154
    value: "{{run_dir}}/stats.sock"
155

  
142 156
- name: "{{app_name}} - uwsgi server supervisor configuration"
143 157
  template:
144 158
    src: server-uwsgi-supervisor.j2
roles/app-setup/vars/main.yml
1 1
log_dir: "/var/log/{{server_app_name}}"
2
run_dir: "/run/{{project_name}}"
2
run_dir: "{{base_run_dir}}/{{project_name}}"
3 3
state_dir: "/var/lib/{{project_name}}"
4 4
spooler_dir: "{{state_dir}}/spooler"
5 5
tenants_dir: "/var/lib/{{project_name}}/tenants"
roles/base/tasks/main.yml
98 98
    path: "{{publik_settings}}"
99 99
    state: directory
100 100

  
101
- name: "create base run directory"
102
  file:
103
    path: "{{base_run_dir}}"
104
    state: directory
105

  
101 106
- name: create getlasso scripts
102 107
  template:
103 108
    src: getlasso.j2
104
-