Skip to content
Snippets Groups Projects
Commit 596537c3 authored by Lars Beckers's avatar Lars Beckers Committed by Hinrikus Wolf
Browse files

add printercount to uwsgi-python

parent 3a111df5
No related branches found
No related tags found
1 merge request!3Unify uwsgi python
This commit is part of merge request !3. Comments created here will be created in the context of that merge request.
......@@ -38,3 +38,6 @@
- name: restart uwsgi instance nfs-api
service: name="uwsgi@nfs-api" state=restarted
- name: restart uwsgi instance printercount
service: name="uwsgi@printercount" state=restarted
---
- name: ensure git ignores our secret config
lineinfile:
dest: "{{app_path}}/.git/info/exclude"
line: "secret_config.py"
state: present
tags:
- printercount
- name: ensure the program has access to all the logs
acl:
path: "{{printercount_log_dir}}"
entity: "{{app_user}}"
etype: user
permissions: r
state: present
recursive: yes
tags:
- printercount
- name: ensure the program will have access to all the logs
acl:
path: "{{printercount_log_dir}}"
entity: "{{app_user}}"
etype: user
permissions: r
default: yes
state: present
tags:
- printercount
- name: ensure the program may see all the logs
acl:
path: "{{printercount_log_dir}}"
entity: "{{app_user}}"
etype: user
permissions: rx
state: present
tags:
- printercount
DEBUG = False
TIMEZONE = "{{printercount_timezone}}"
DATE_FORMAT = "{{printercount_date_format}}"
PRINTER_LOG_DIR = "{{printercount_log_dir}}"
from secret_config import secret_key as SECRET_KEY
app_name: printercount
app_user: printercount
app_group: printercount
app_home: /var/www/printercount
app_path: /var/www/printercount/program
app_python_version: 3
app_venv: /var/www/printercount/program
app_program: server.py
app_callable: app
app_command: "runserver"
app_mountpoint: /kasse
app_service_env: []
app_mules: 0
app_enable_threads: false
app_harakiri: 5
app_uwsgi_options: []
app_db_name: ''
app_db_type: ''
app_additional_software: []
app_deploy_key: "{{ inventory_dir }}/files/deploy-keys/printercount"
app_git_url: "git@git.fsmpi.rwth-aachen.de:kasse/printercount.git"
app_git_version: HEAD
app_requirements_file: requirements.txt
app_config_file: config.py
app_secret_config: true
app_secret_config_keys: []
printercount_timezone: Europe/Berlin
printercount_date_format: "%d.%m.%Y"
printercount_log_dir: /var/log/cups/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment