Commit 088cd115 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Merge branch 'schrank-flask' into 'master'

New Schrank-Webinterface

See merge request !33
parents 7fa10310 56dc14c7
Pipeline #3656 passed with stage
in 54 seconds
- name: ensure there exists a .ansible folder
path: "{{app_path}}/.ansible"
state: directory
owner: "{{app_user}}"
group: "{{app_group}}"
- name: install pdf utils
name: poppler-utils
state: present
- name: ensure data model upgrades are applied # noqa 301
command: "{{app_venv}}/bin/flask db upgrade"
chdir: "{{app_path}}"
FLASK_APP: "{{app_program}}"
become: true
become_user: "{{app_user}}"
- "restart uwsgi instance {{app.instance}}"
- name: ensure there a directory for the documents
path: "{{schrank_document_path}}"
state: directory
owner: "{{app_user}}"
group: "{{schrank_document_group}}"
mode: "{{schrank_document_permissions}}"
- "restart uwsgi instance {{app.instance}}"
- name: ensure the folder from above is not present anymore
path: "{{app_path}}/.ansible"
state: absent
from secret_config import secret_key as SECRET_KEY
SQLALCHEMY_DATABASE_URI = "postgresql://{{ app_user }}:@/{{ app_db_name }}"
DOCUMENT_PATH = "{{schrank_document_path}}"
SSO_URL = "{{schrank_sso_url}}"
SSO_GROUP = "{{schrank_sso_group}}"
app_name: schrank-flask
app_user: schrankweb
app_group: schrankweb
app_db_name: schrank
app_db_type: postgres
app_git_url: ""
schrank_document_path: "{{app_path}}/documents"
schrank_document_group: schrank
schrank_document_permissions: "2750"
schrank_sso_url: ""
schrank_sso_group: "fachschaft"
app_name: schrank
app_user: schrankweb
app_group: schrankweb
app_home: /var/www/schrank
app_path: /var/www/schrank
app_python_version: 2
app_venv: ''
app_program: main/
app_callable: application
app_command: ''
app_mountpoint: /
app_mules: 0
app_enable_threads: false
app_uwsgi_options: []
app_service_env: []
# There is a mysql database named schrank, but it is unmanaged by ansible.
app_db_type: ''
app_db_name: ''
app_deploy_key: "{{ inventory_dir }}/files/deploy-keys/schrank"
app_git_url: ""
app_git_version: HEAD
# There is no requirements.txt file and no other documentation (e.g. venv)
# on needed software. The settings (including secret_key and db password)
# are also checked into the repository.
app_requirements_file: ''
app_config_file: ''
app_secret_config: false
app_secret_config_keys: []
app_additional_software: []
Markdown is supported
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