summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Simacek <msimacek@redhat.com>2017-08-16 17:58:09 +0200
committerMichael Simacek <msimacek@redhat.com>2017-08-16 17:59:10 +0200
commit23448c31bc71b53643205889c76df9f202a29192 (patch)
tree6e922bb16fff46ba359b2c472037f83ad8f1aa98
parentf997a31610c6818c19a03adcb9eb4d4e6b834840 (diff)
downloadansible-23448c31bc71b53643205889c76df9f202a29192.tar.gz
ansible-23448c31bc71b53643205889c76df9f202a29192.tar.xz
ansible-23448c31bc71b53643205889c76df9f202a29192.zip
Keep the pkgdb frontend part before we have pagure plugin released
-rw-r--r--roles/koschei/frontend/templates/config-frontend.cfg.j226
1 files 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 a99b7ad83..7f9504d10 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,