mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-30 21:41:53 +08:00
[FMN] Update fasjson configuration
The new version of FMN is completely ported to python3, so we can remove some python2 related things, also enable fasjson for staging. Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
- tasks.py
|
||||
- util.py
|
||||
when:
|
||||
inventory_hostname.startswith('notifs-backend01.iad')
|
||||
inventory_hostname.startswith('notifs-backend01.iad') or env != 'staging'
|
||||
tags:
|
||||
- notifs
|
||||
- notifs/backend
|
||||
|
||||
@@ -91,21 +91,20 @@ config = {
|
||||
# The notification backend uses this to build a fas cache of ircnicks
|
||||
# to fas usernames so it can act appropriately on certain message types.
|
||||
{% if env == 'staging' -%}
|
||||
"fas_credentials": {
|
||||
"username": "{{fedoraDummyUser}}",
|
||||
"password": "{{fedoraDummyUserPassword}}",
|
||||
"base_url": "https://accounts.stg.fedoraproject.org",
|
||||
"fasjson": {
|
||||
"active": True,
|
||||
"url": "https://fasjson.stg.fedoraproject.org/"
|
||||
},
|
||||
{% else -%}
|
||||
"fasjson": {
|
||||
"active": True,
|
||||
"url": "https://fasjson.fedoraproject.org/"
|
||||
},
|
||||
{% endif %}
|
||||
"fas_credentials": {
|
||||
"username": "{{fedoraDummyUser}}",
|
||||
"password": "{{fedoraDummyUserPassword}}",
|
||||
},
|
||||
{% endif %}
|
||||
|
||||
|
||||
## Backend stuff ##
|
||||
|
||||
Reference in New Issue
Block a user