Jan Dittberner
7ec29b9ce2
This commit refactors to gnuviechadmin.base state by moving the Django specific parts into gnuviechadmin.django that is now used by gnuviechadmin.gvaldap and gnuviechadmin.webinterface. The script templates gnuviechadmin/gvafile/run_celery.sh and gnuviechadmin/gvafile/settings.sh have been added.
22 lines
850 B
Text
22 lines
850 B
Text
{% from 'gnuviechadmin/vars.sls' import home, appdir, venv %}
|
|
|
|
gnuviechadmin-dbschema:
|
|
cmd.wait:
|
|
- name: . {{ home }}/gvasettings.sh ; unset LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME ; {{ venv }}/bin/python manage.py migrate --noinput
|
|
- user: vagrant
|
|
- group: vagrant
|
|
- cwd: {{ appdir }}
|
|
- watch:
|
|
- cmd: gnuviechadmin-requires
|
|
- file: {{ home }}/gvasettings.sh
|
|
|
|
gnuviechadmin-locale-data-compile:
|
|
cmd.wait:
|
|
- name: . {{ home }}/gvasettings.sh ; {{ venv }}/bin/python {{ appdir }}/manage.py compilemessages
|
|
- user: vagrant
|
|
- group: vagrant
|
|
- cwd: {{ appdir }}
|
|
- require:
|
|
- pkg: gnuviechadmin-packages
|
|
- file: {{ home }}/gvasettings.sh
|
|
- cmd: gnuviechadmin-venv
|