Prepare koschei config for next version

This commit is contained in:
Michael Simacek 2017-01-13 16:12:02 +01:00
parent 7f0f327c3d
commit 52cbde4ee5
2 changed files with 49 additions and 9 deletions

View file

@ -24,10 +24,17 @@ config = {
"topurl": "http://{{ koschei_kojipkgs }}",
"weburl": "http://{{ koschei_koji_web }}/koji",
"login_method": "krb_login",
{% if env == 'staging' %} {# 1.9 #}
"login_args": {
"keytab": "/etc/krb5.koschei_{{ inventory_hostname }}.keytab",
"principal": "koschei/{{ inventory_hostname }}@{{ ipa_realm }}",
},
{% else %}
"login_args": DictMergeWorkaround({
"keytab": "/etc/krb5.koschei_{{ inventory_hostname }}.keytab",
"principal": "koschei/{{ inventory_hostname }}@{{ ipa_realm }}",
}),
{% endif %}
"session_opts": {
"krb_rdns": False,
},
@ -72,7 +79,6 @@ config = {
"logging": {
"loggers": {
"": {
"level": "DEBUG",
"handlers": ["stderr", "email"],
},
"fedmsg": {
@ -90,7 +96,11 @@ config = {
},
},
},
{% if env == 'staging' %} {# 1.9 #}
"plugins": ['pkgdb', 'fedmsg'],
{% else %}
"plugins": ['pkgdb', 'fedmsg_publisher'],
{% endif %}
"fedmsg": {
{% if env == 'staging' %}
"topic": "org.fedoraproject.stg.buildsys",
@ -102,6 +112,29 @@ config = {
"enabled": True,
"modname": "koschei",
},
"caching": { {# 1.9+ #}
"rpm_requires": {
"backend": "dogpile.cache.memcached",
"expiration_time": None,
"arguments": {
"url": "memcached01",
"distributed_lock": True,
},
},
"plugin": {
"pkgdb": {
"users": {
"backend": "dogpile.cache.memcached",
"expiration_time": 300,
"arguments": {
"url": "memcached01",
"distributed_lock": True,
},
},
},
},
},
"pkgdb": {
{% if env == 'staging' %}
"pkgdb_url": 'https://admin.stg.fedoraproject.org/pkgdb/api',
@ -111,7 +144,7 @@ config = {
"topic_re": r'\.prod\.pkgdb\.',
{% endif %}
"sync_tracked": True,
"cache": {
"cache": { {# remove after 1.9 #}
"backend": "dogpile.cache.memcached",
"expiration_time": 300,
"arguments": {

View file

@ -39,12 +39,19 @@ config = {
},
},
"plugins": ['pkgdb'],
"fedmsg": {
{% if env == 'staging' %}
"topic": "org.fedoraproject.stg.buildsys",
{% else %}
"topic": "org.fedoraproject.prod.buildsys",
{% endif %}
"caching": { {# 1.9+ #}
"plugin": {
"pkgdb": {
"users": {
"backend": "dogpile.cache.memcached",
"expiration_time": 300,
"arguments": {
"url": "memcached01:11211",
"distributed_lock": True,
},
},
},
},
},
"pkgdb": {
{% if env == 'staging' %}
@ -55,7 +62,7 @@ config = {
"topic_re": r'\.prod\.pkgdb\.',
{% endif %}
"sync_tracked": True,
"cache": {
"cache": { {# remove in 1.9 #}
"backend": "dogpile.cache.memcached",
"expiration_time": 300,
"arguments": {