dist-git/pagure: Enable the pagure-dist-git 3rd party plugin in staging

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2019-08-21 16:12:07 +02:00
parent 954eb6e328
commit a924fac977
3 changed files with 7 additions and 0 deletions

View file

@ -102,6 +102,7 @@
with_items:
- { file: pagure.cfg, location: /etc/pagure }
- { file: alembic.ini, location: /etc/pagure }
- { file: pagure_plugins.cfg, location: /etc/pagure }
tags:
- config
- web

View file

@ -10,6 +10,9 @@ import pkg_resources
import os
## Set the environment variable pointing to the configuration file
os.environ['PAGURE_CONFIG'] = '/etc/pagure/pagure.cfg'
{% if env == 'staging' %}
os.environ['PAGURE_PLUGIN'] = '/etc/pagure/pagure_plugins.cfg'
{% endif %}
## Set the environment variable if the tmp folder needs to be moved
## Is necessary to work around bug in libgit2:

View file

@ -0,0 +1,3 @@
from pagure_distgit import plugin
PLUGINS = [plugin.DISTGIT_NS]