riscv-koji: setup correct krb5.conf for the hub

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2025-02-11 11:07:53 -08:00
parent 49c87bdbdf
commit de84b616f6

View file

@ -17,12 +17,8 @@ includedir /etc/krb5.conf.d/
[realms]
{{ ipa_realm }} = {
{% if ansible_distribution_major_version|default(0)|int == 6 and ansible_distribution == "RedHat" %}
kdc = {{ ipa_server }}
{% else %}
kdc = https://id{{ env_suffix }}.fedoraproject.org/KdcProxy
{% endif %}
{% if (ansible_hostname|default('')).startswith('koji') %}
{% if (ansible_hostname|default('')).startswith(('koji','riscv-koji')) %}
# This maps "A/B@FP.O" to "A/B@FP.O", and is used for gss localname in koji gssapi
auth_to_local = RULE:[2:$1/$2@$0](.*)
auth_to_local = DEFAULT