diff options
| author | Jakub Kadlčík <frostyx@email.cz> | 2017-04-11 13:54:54 +0200 |
|---|---|---|
| committer | Miroslav Suchý <msuchy@redhat.com> | 2017-04-12 08:53:09 +0200 |
| commit | 0a1ed3134c43bc9f619b83423321379223659cb3 (patch) | |
| tree | 6a88f3b0b366a3691a3c0c2b520608150805bf81 | |
| parent | b7c49486121ee91adb30b7bd6bed4dce6cc975a9 (diff) | |
| download | ansible-0a1ed3134c43bc9f619b83423321379223659cb3.tar.gz ansible-0a1ed3134c43bc9f619b83423321379223659cb3.tar.xz ansible-0a1ed3134c43bc9f619b83423321379223659cb3.zip | |
Properly configure our MBS instance
| -rw-r--r-- | roles/copr/mbs/templates/config.py | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/roles/copr/mbs/templates/config.py b/roles/copr/mbs/templates/config.py index 409fef36e..63aa44ad4 100644 --- a/roles/copr/mbs/templates/config.py +++ b/roles/copr/mbs/templates/config.py @@ -7,10 +7,32 @@ from base_config import confdir, dbdir class ProdConfiguration(base.ProdConfiguration): SYSTEM = 'copr' - REQUIRE_PACKAGER = False SECRET_KEY = '{{ copr_mbs_secret_key }}' + + YAML_SUBMIT_ALLOWED = True + + # Only copr-frontend is allowed to communicate with this mbs instance + # Therefore we don't require it to authenicate first, we trust it NO_AUTH = True + # Use production instances of PDC and Koji + KOJI_REPOSITORY_URL = 'https://kojipkgs.fedoraproject.org/repos' + PDC_URL = 'http://pdc.fedoraproject.org/rest_api/v1' + + # When building from scmurl, + # only such URLs that starts with some of these are allowed + # Currently it is not possible to turn this feature off + # and allow everything, so let's allow at least something + SCMURLS = ["git://pkgs.stg.fedoraproject.org/modules/", + "git://pkgs.fedoraproject.org/modules/"] + +{% if env == 'staging' %} + MESSAGING_TOPIC_PREFIX = ['org.fedoraproject.dev', 'org.fedoraproject.stg'] +{% else %} + MESSAGING_TOPIC_PREFIX = ['org.fedoraproject.prod'] +{% endif %} + + class DevConfiguration(base.DevConfiguration): SYSTEM = 'copr' |
