From 294caaf2edba8dc40d30b41c46a903f6531e3b09 Mon Sep 17 00:00:00 2001 From: Michael Simacek Date: Wed, 30 Aug 2017 16:40:57 +0300 Subject: [PATCH] Enable koschei-pagure plugin in stg --- .../frontend/templates/config-frontend.cfg.j2 | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/roles/koschei/frontend/templates/config-frontend.cfg.j2 b/roles/koschei/frontend/templates/config-frontend.cfg.j2 index a8322b6051..2c2307ac5d 100644 --- a/roles/koschei/frontend/templates/config-frontend.cfg.j2 +++ b/roles/koschei/frontend/templates/config-frontend.cfg.j2 @@ -39,7 +39,7 @@ config = { }, }, {% if env == 'staging' %} - "plugins": ['pkgdb', 'copr'], + "plugins": ['pagure', 'copr'], {% else %} "plugins": ['pkgdb'], {% endif %} @@ -56,6 +56,16 @@ config = { }, }, }, + "pagure": { + "users": { + "backend": "dogpile.cache.memcached", + "expiration_time": 300, + "arguments": { + "url": "memcached01:11211", + "distributed_lock": True, + }, + }, + }, }, "pkgdb": { {% if env == 'staging' %} @@ -67,6 +77,9 @@ config = { {% endif %} "sync_tracked": False, }, + "pagure": { + "api_url": "https://src{{ env_prefix }}.fedoraproject.org/api/0", + }, "frontend": { "builds_per_page": 8, "auth": {