From 23448c31bc71b53643205889c76df9f202a29192 Mon Sep 17 00:00:00 2001 From: Michael Simacek Date: Wed, 16 Aug 2017 17:58:09 +0200 Subject: [PATCH] Keep the pkgdb frontend part before we have pagure plugin released --- .../frontend/templates/config-frontend.cfg.j2 | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/roles/koschei/frontend/templates/config-frontend.cfg.j2 b/roles/koschei/frontend/templates/config-frontend.cfg.j2 index a99b7ad838..7f9504d10e 100644 --- a/roles/koschei/frontend/templates/config-frontend.cfg.j2 +++ b/roles/koschei/frontend/templates/config-frontend.cfg.j2 @@ -39,11 +39,33 @@ config = { }, }, {% if env == 'staging' %} - "plugins": ['copr'], + "plugins": ['pkgdb', 'copr'], {% else %} - "plugins": [], + "plugins": ['pkgdb'], {% endif %} "caching": { + "plugin": { + "pkgdb": { + "users": { + "backend": "dogpile.cache.memcached", + "expiration_time": 300, + "arguments": { + "url": "memcached01:11211", + "distributed_lock": True, + }, + }, + }, + }, + }, + "pkgdb": { + {% if env == 'staging' %} + "pkgdb_url": 'https://admin.stg.fedoraproject.org/pkgdb/api', + "topic_re": r'\.stg\.pkgdb\.', + {% else %} + "pkgdb_url": 'https://admin.fedoraproject.org/pkgdb/api', + "topic_re": r'\.prod\.pkgdb\.', + {% endif %} + "sync_tracked": False, }, "frontend": { "builds_per_page": 8,