Skip to content
Snippets Groups Projects
Commit 7eaecf8f authored by Hinrikus Wolf's avatar Hinrikus Wolf
Browse files

migrate schildergenerator role

parent ba5a6734
No related branches found
No related tags found
No related merge requests found
......@@ -13,3 +13,8 @@
- name: restart uwsgi instance lehrpreis
service: name="uwsgi@lehrpreis" state=restarted
- name: restart uwsgi instance schilder
service: name="uwsgi@schilder" state=restarted
- name: restart uwsgi instance boxes
service: name="uwsgi@boxes" state=restarted
- name: ensure we have our templates
git:
repo: "{{ schilder_templates_url }}"
dest: "{{ app_home }}/tex"
key_file: /root/.ssh/schildergenerator
version: HEAD
notify:
- "restart uwsgi instance {{ app.instance }}"
#### BASIC CONFIGURATION
# Secret key (used for session cookie encryption). Needs to be set to some random string.
# Yes, just smash your keyboard for some random characters. No, don't publish them anywhere.
# Yes, you will need this. If you get random RuntimeErrors, you did not set this.
from secret_config import secret_key as app_secret
## You will need to use absolute paths!
# Base directory. You need to set this again in schilder.wsgi if you use WSGI.
basedir = '{{ app_path }}'
# Temp directory for imagemagick/pdflatex work files (needs to be writeable)
tmpdir = '/tmp'
## All following directories derive from basedir, you don't really need to alter them
# Data directory (needs to be writeable)
datadir = basedir + '/data'
# HTML template directory
templatedir = basedir + '/templates'
# TeX template directory
textemplatedir = '{{ app_home }}/tex'
# TeX support file directory (all files that might be needed by a tex template)
texsupportdir = textemplatedir + '/support'
# PDF data directory (needs to be writeable)
pdfdir = datadir + '/pdf'
# Image data directory (needs to be writeable)
imagedir = datadir + '/images'
# Cache dir (needs to be writable)
cachedir = datadir + '/cache'
# Upload temp directory (needs to be writeable)
uploaddir = datadir + '/upload'
# allowed image upload file extensions
allowed_extensions = set(['png', 'jpg', 'jpeg', 'gif', 'svg'])
#### PRINTER OPTIONS
# CUPS printer names
printers = {
{% for printer in schilder_printers %}
'{{ printer.description }}': '{{ printer.name }}',
{% endfor %}
}
printserver = '{{ schilder_printsrv }}'
# additional lpr options. Use an empty list if not needed.
lproptions = [
{% for option in schilder_lproptions %}
'{{ option }}',
{% endfor %}
]
#### DEVELOPERS ONLY
# Listening interface and port, usually '127.0.0.1' or '0.0.0.0'
# Only effective if started from command line (instead via webserver/WSGI),
# therefore these options would only be interesting to a developer.
listen = '127.0.0.1'
port = 5432
app_name: schilder
app_user: schilder
app_group: schilder
app_home: /var/www/schilder
app_path: /var/www/schilder/program
app_python_version: 2
app_venv: /var/www/schilder/program
app_program: schilder.py
app_callable: app
app_command: ""
app_mountpoint: /
app_db_type: ""
app_additional_software: ["graphicsmagick", "python-pythonmagick"]
app_deploy_key: "{{ inventory_dir }}/files/deploy-keys/schildergenerator"
app_git_url: "git@git.fsmpi.rwth-aachen.de:schilder/schildergenerator.git"
app_git_version: HEAD
app_config_file: config.py
app_secret_config: true
schilder_printsrv: printsrv.example.de
schilder_printers:
- description: "1 - Kopierer Turing"
name: "Kopierer1"
- description: "2 - Kopierer Moore"
name: "Kopierer2"
schilder_lproptions:
- "-o fitplot"
schilder_templates_url: git@git.example.com:schilder/templates-example-schilder.git
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment