diff options
author | Pierre-Yves Chibon <pingou@pingoured.fr> | 2014-12-08 21:12:43 +0100 |
---|---|---|
committer | Pierre-Yves Chibon <pingou@pingoured.fr> | 2014-12-08 21:12:53 +0100 |
commit | 49ac67d6aad5eaad6a8b13ee834d4965a60be2ad (patch) | |
tree | 1cad3aaa31cdc2cc644f29cd483d5eab8808c47f | |
parent | 06a7fd8e48d5254495054d54751da3a42f5c66c4 (diff) | |
download | ansible-49ac67d6aad5eaad6a8b13ee834d4965a60be2ad.tar.gz ansible-49ac67d6aad5eaad6a8b13ee834d4965a60be2ad.tar.xz ansible-49ac67d6aad5eaad6a8b13ee834d4965a60be2ad.zip |
Add the wsgi file for mirrormanager frontend, might help...
-rw-r--r-- | roles/mirrormanager/frontend/templates/mirrormanager2.wsgi | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/roles/mirrormanager/frontend/templates/mirrormanager2.wsgi b/roles/mirrormanager/frontend/templates/mirrormanager2.wsgi new file mode 100644 index 000000000..dd778b218 --- /dev/null +++ b/roles/mirrormanager/frontend/templates/mirrormanager2.wsgi @@ -0,0 +1,25 @@ +#-*- coding: utf-8 -*- + +# The three lines below are required to run on EL6 as EL6 has +# two possible version of python-sqlalchemy and python-jinja2 +# These lines make sure the application uses the correct version. +import __main__ +__main__.__requires__ = ['SQLAlchemy >= 0.7', 'jinja2 >= 2.4'] +import pkg_resources + +import os +## Set the environment variable pointing to the configuration file +os.environ['MM2_CONFIG'] = '/etc/mirrormanager/mirrormanager2cfg' + +## The following is only needed if you did not install mirrormanager2 +## as a python module (for example if you run it from a git clone). +#import sys +#sys.path.insert(0, '/path/to/mirrormanager2/') + + +## The most import line to make the wsgi working +from mirrormanager2 import APP as application + +## Turn on the debug mode to get more information in the logs about internal +## errors +#application.debug = True |