mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-06-14 22:36:09 +08:00
Enable kerberos koji auth for koschei stg
This commit is contained in:
@@ -9,8 +9,8 @@ num_cpus: 4
|
||||
|
||||
koschei_topurl: https://apps.stg.fedoraproject.org/koschei
|
||||
koschei_pgsql_hostname: pgbdr.stg.phx2.fedoraproject.org
|
||||
koschei_koji_hub: koji01.stg.phx2.fedoraproject.org
|
||||
koschei_kojipkgs: koji01.stg.phx2.fedoraproject.org
|
||||
koschei_koji_hub: koji.stg.fedoraproject.org
|
||||
koschei_kojipkgs: koji.stg.fedoraproject.org
|
||||
koschei_koji_web: koji.stg.fedoraproject.org
|
||||
|
||||
|
||||
|
||||
@@ -13,12 +13,25 @@ config = {
|
||||
"server": "http://{{ koschei_koji_hub }}/kojihub",
|
||||
"topurl": "http://{{ koschei_kojipkgs }}",
|
||||
"weburl": "http://{{ koschei_koji_web }}/koji",
|
||||
{% if env == 'staging' %}
|
||||
{# staging will use kerberos #}
|
||||
"login_method": "krb_login",
|
||||
"login_args": {
|
||||
"keytab": "/etc/krb5.koschei_{{ inventory_hostname }}.keytab",
|
||||
"principal": "koschei/{{ inventory_hostname }}@{{ ipa_realm }}",
|
||||
},
|
||||
"session_opts": {
|
||||
"krb_rdns": False,
|
||||
},
|
||||
{% else %}
|
||||
{# prod still uses ssl #}
|
||||
"login_method": "ssl_login",
|
||||
"login_args": {
|
||||
"cert": "/etc/koschei/koschei.pem",
|
||||
"ca": "/etc/koschei/fedora-ca.cert",
|
||||
"serverca": "/etc/koschei/fedora-ca.cert",
|
||||
},
|
||||
{% endif %}
|
||||
{% if env == 'staging' %}
|
||||
"max_builds": 4,
|
||||
"build_arches": ['i386', 'x86_64', 'armhfp'],
|
||||
|
||||
Reference in New Issue
Block a user