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:
parent
954eb6e328
commit
a924fac977
3 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
3
roles/distgit/pagure/templates/pagure_plugins.cfg
Normal file
3
roles/distgit/pagure/templates/pagure_plugins.cfg
Normal file
|
@ -0,0 +1,3 @@
|
|||
from pagure_distgit import plugin
|
||||
|
||||
PLUGINS = [plugin.DISTGIT_NS]
|
Loading…
Add table
Add a link
Reference in a new issue