From 1519097e575865234b23f92b241a83217f42d076 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Nov 20 2014 03:25:12 +0000 Subject: Add a yumconfig for hotness01.stg. --- diff --git a/roles/hotness/files/yumconfig b/roles/hotness/files/yumconfig new file mode 100644 index 0000000..3806b7d --- /dev/null +++ b/roles/hotness/files/yumconfig @@ -0,0 +1,21 @@ +[main] +cachedir=/var/cache/yum-hotness/$basearch/$releasever +keepcache=0 +debuglevel=2 +logfile=/var/log/yum-hotness.log +exactarch=1 +obsoletes=1 +gpgcheck=1 +plugins=1 +installonly_limit=3 + +# It is usually 90m. We'll expire often.. +metadata_expire=10m + +# We have only one repo to query... +[rawhide-source] +name=Rawhide Source +failovermethod=priority +baseurl=http://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/source/SRPMS/ +enabled=1 +gpgcheck=0 diff --git a/roles/hotness/tasks/main.yml b/roles/hotness/tasks/main.yml index 157fffa..ea34e6a 100644 --- a/roles/hotness/tasks/main.yml +++ b/roles/hotness/tasks/main.yml @@ -49,6 +49,12 @@ - config - hotness +- name: Copy over a yum config for repoquery + copy: src=yumconfig dest=/etc/hotness-yum.conf + tags: + - config + - hotness + - name: Create /usr/share/fedmsg (for bugzilla cookies...) file: dest=/usr/share/fedmsg owner=fedmsg group=fedmsg mode=0750 state=directory tags: diff --git a/roles/hotness/templates/hotness.py b/roles/hotness/templates/hotness.py index 10c8f2f..f59c634 100644 --- a/roles/hotness/templates/hotness.py +++ b/roles/hotness/templates/hotness.py @@ -74,6 +74,8 @@ config = { 'hotness.pkgdb_url': 'https://admin.fedoraproject.org/pkgdb/api', {% endif %} + 'hotness.yumconfig': '/etc/hotness-yum.conf', + "hotness.cache": { "backend": "dogpile.cache.dbm", "expiration_time": 300,