blob: f0f7b3014c75e507a7aa61cc0df72699c15cdecc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# -*- coding: utf-8 -*-
class BaseConfiguration:
log_level = 'DEBUG'
koji_cert = None
keytab = '/etc/krb5.keytab'
principal = '{{ app }}/{{ app }}{{ env_suffix }}.fedoraproject.org@{{ ipa_realm }}'
messaging_backend = 'fedora-messaging'
build_state = 'ready'
{% if env == 'staging' %}
dry_run = False
# Running in staging, a rule file inside my perosnal repo is used in order to test conveniently.
rules_file_url = 'https://pagure.io/mts-rules/raw/master/f/rules.yaml'
mbs_api_url = 'https://mbs.stg.fedoraproject.org/module-build-service/1/'
koji_profile = 'stg'
{% else %}
# Disable dry_run when enable MTS
dry_run = True
rules_file_url = ('https://infrastructure.fedoraproject.org/cgit/ansible.git/plain/'
'roles/openshift-apps/message-tagging-service/files/mts-rules.yml')
mbs_api_url = 'https://mbs.fedoraproject.org/module-build-service/1/'
koji_profile = 'koji'
{% endif %}
|