From 395ca24edea12cffc2ce99d854502194b5dd0f4c Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Tue, 7 Mar 2017 10:41:56 +0000 Subject: [PATCH] Add code and initial set for koji stg sync krb principals Signed-off-by: Patrick Uiterwijk --- .../manual/staging-sync/templates/koji-reset-staging.sql | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/playbooks/manual/staging-sync/templates/koji-reset-staging.sql b/playbooks/manual/staging-sync/templates/koji-reset-staging.sql index 96568873fd..b3df496bd7 100644 --- a/playbooks/manual/staging-sync/templates/koji-reset-staging.sql +++ b/playbooks/manual/staging-sync/templates/koji-reset-staging.sql @@ -153,4 +153,9 @@ insert into user_perms (user_id, perm_id, active, creator_id) values ( (select id from users where name='{{username}}')); {% endfor %} +-- Fix krb principals for some users +{% for username, principal in [('releng', 'compose/koji.stg.fedoraproject.org'), ('koschei', 'koschei/koschei-backend01.stg.phx2.fedoraproject.org')] %} +update users set krb_principal='{{principal}}@STG.FEDORAPROJECT.ORG' where username='{{username}}'; +{% endfir %} + VACUUM ANALYZE;