diff --git a/roles/koji_builder/tasks/main.yml b/roles/koji_builder/tasks/main.yml index 1d59c5b9bc..1126ddd8ec 100644 --- a/roles/koji_builder/tasks/main.yml +++ b/roles/koji_builder/tasks/main.yml @@ -1,6 +1,12 @@ # # This is a base koji_builder role. # +dependencies: + - role: keytab/service + kt_location: /etc/kojid/kojid.keytab + service: compile + when: env == "staging" + - name: set hostname hostname: name="{{inventory_hostname}}" tags: diff --git a/roles/koji_builder/templates/kojid.conf b/roles/koji_builder/templates/kojid.conf index 53b682521d..25837f4a59 100644 --- a/roles/koji_builder/templates/kojid.conf +++ b/roles/koji_builder/templates/kojid.conf @@ -66,8 +66,15 @@ from_addr=Fedora Koji Build System ;configuration for SSL athentication +{% if env == "staging" %} +; Kerberos configuration +host_principal_format = compile/%s@{{ ipa_realm }} +keytab = /etc/kojid/kojid.keytab +krbservice = host +{% else %} ;client certificate - puppet generated cert = /etc/kojid/kojibuilder.pem +{% endif %} ;certificate of the CA that issued the client certificate ca = /etc/kojid/cacert.pem