add MBS service

This commit is contained in:
nazunalika 2020-12-27 13:37:02 -07:00
parent e383fe2bd7
commit d6132b97d2
2 changed files with 10 additions and 0 deletions

View File

@ -47,6 +47,13 @@ koji_kojira_user_kerb: koji/kojira
koji_kojira_principal: koji/kojira@ROCKYLINUX.ORG koji_kojira_principal: koji/kojira@ROCKYLINUX.ORG
koji_kojira_keytab: /etc/koji.keytab koji_kojira_keytab: /etc/koji.keytab
# MBS
koji_mbs: true
koji_mbs_user: mbs
koji_mbs_user_kerb: mbs/mbs.rockylinux.org
koji_mbs_principal: mbs/mbs.rockylinux.org@ROCKYLINUX.ORG
koji_mbs_keytab: /etc/mbs.keytab
# Storage # Storage
koji_nfs: true koji_nfs: true
koji_mount: /mnt/koji koji_mount: /mnt/koji

View File

@ -4,3 +4,6 @@ insert into user_perms (user_id, perm_id, creator_id) values (1, 1, 1);
with user_id as (insert into users (name, status, usertype) values ('{{ koji_kojira_user_kerb }}', 0, 0) returning id) with user_id as (insert into users (name, status, usertype) values ('{{ koji_kojira_user_kerb }}', 0, 0) returning id)
insert into user_krb_principals (user_id, krb_principal) values ((select id from user_id),'{{ koji_kojira_principal }}'); insert into user_krb_principals (user_id, krb_principal) values ((select id from user_id),'{{ koji_kojira_principal }}');
INSERT INTO user_perms (user_id, perm_id, creator_id) VALUES (2, 10, 1); INSERT INTO user_perms (user_id, perm_id, creator_id) VALUES (2, 10, 1);
with user_id as (insert into users (name, status, usertype) values ('{{ koji_mbs_user_kerb }}', 0, 0) returning id)
insert into user_krb_principals (user_id, krb_principal) values ((select id from user_id),'{{ koji_mbs_principal }}');
INSERT INTO user_perms (user_id, perm_id, creator_id) VALUES (3, 1, 1);