The configuration file is nuancier-lite.cfg and fix the call to createdb.py

This commit is contained in:
Pierre-Yves Chibon 2013-09-20 13:40:05 +02:00
parent e2fb4d7cac
commit b876460607
2 changed files with 4 additions and 4 deletions

View file

@ -18,7 +18,7 @@
dest={{ item.location }}/{{ item.dest }}
owner=apache group=apache mode=0600
with_items:
- { file: nuancier_admin.cfg, location: /etc/nuancier, dest: nuancier.cfg }
- { file: nuancier_admin.cfg, location: /etc/nuancier, dest: nuancier-lite.cfg }
tags:
- config
notify:
@ -38,14 +38,14 @@
- setup
- name: create the database scheme
command: NUANCIER_CONFIG=/etc/nuancier/nuancier.cfg /usr/share/nuancier/nuancier-lite_createdb.py
command: NUANCIER_CONFIG=/etc/nuancier/nuancier.cfg python /usr/share/nuancier/nuancier-lite_createdb.py
- name: replace the nuancier configuration file by the one with the normal user
template: src={{ item.file }}
dest={{ item.location }}/{{ item.file }}
owner=apache group=apache mode=0600
with_items:
- { file: nuancier.cfg, location: /etc/nuancier }
- { file: nuancier-lite.cfg, location: /etc/nuancier }
- { file: nuancier.conf, location: /etc/httpd/conf.d }
- { file: nuancier.wsgi, location: /usr/share/nuancier }
tags:

View file

@ -9,7 +9,7 @@ import pkg_resources
import os
# Set the environment variable pointing to the configuration file
os.environ['NUANCIER_CONFIG'] = '/etc/nuancier/nuancier.cfg'
os.environ['NUANCIER_CONFIG'] = '/etc/nuancier/nuancier-lite.cfg'
# The most import line to make the wsgi working
from nuancier import APP as application