make settings configurable via pillar, default to local

This commit is contained in:
Jan Dittberner 2015-10-11 14:11:11 +02:00
parent a6e795684f
commit 6c9caec8d6
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@ include:
- gnuviechadmin.queues
gnuviechadmin:
deploymenttype: local
mailfrom: admin@gnuviech-server.de
adminemail: admin@gnuviech-server.de
sitename: Gnuviech Customer Self Service

View file

@ -1,6 +1,6 @@
#!/bin/sh
export DJANGO_SETTINGS_MODULE="gnuviechadmin.settings.production"
export DJANGO_SETTINGS_MODULE="gnuviechadmin.settings.{{ salt['pillar.get']('gnuviechadmin:deploymenttype', 'production') }}"
export GVA_ADMIN_NAME="Jan Dittberner"
export GVA_ADMIN_EMAIL="{{ salt['pillar.get']('gnuviechadmin:adminemail') }}"
export GVA_PGSQL_DATABASE="{{ salt['pillar.get']('gnuviechadmin-database:database') }}"