diff options
-rw-r--r-- | roles/badges/backend/templates/badges-awarder.py | 6 | ||||
-rw-r--r-- | roles/notifs/backend/templates/fmn.consumer.py | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/roles/badges/backend/templates/badges-awarder.py b/roles/badges/backend/templates/badges-awarder.py index be4e4f065..c95d8b5c2 100644 --- a/roles/badges/backend/templates/badges-awarder.py +++ b/roles/badges/backend/templates/badges-awarder.py @@ -32,7 +32,11 @@ config = { # Stuff used for caching packagedb relations. "fedbadges.rules.utils.use_pkgdb2": True, - "fedbadges.rules.utils.pkgdb_url": "https://admin.fedoraproject.org/pkgdb", + {% if env == 'staging' %} + "fedbadges.rules.utils.pkgdb_url": "https://admin.stg.fedoraproject.org/pkgdb/api", + {% else %} + "fedbadges.rules.utils.pkgdb_url": "https://admin.fedoraproject.org/pkgdb/api", + {% endif %} "fedbadges.rules.cache": { "backend": "dogpile.cache.dbm", "expiration_time": 300, diff --git a/roles/notifs/backend/templates/fmn.consumer.py b/roles/notifs/backend/templates/fmn.consumer.py index 824f680af..da3b64fcc 100644 --- a/roles/notifs/backend/templates/fmn.consumer.py +++ b/roles/notifs/backend/templates/fmn.consumer.py @@ -24,7 +24,11 @@ config = { # Some configuration for the rule processors "fmn.rules.utils.use_pkgdb2": True, + {% if env == 'staging' %} + "fmn.rules.utils.pkgdb_url": "https://admin.stg.fedoraproject.org/pkgdb/api", + {% else %} "fmn.rules.utils.pkgdb_url": "https://admin.fedoraproject.org/pkgdb/api", + {% endif %} "fmn.rules.cache": { "backend": "dogpile.cache.dbm", "expiration_time": 300, |