kojira user

This commit is contained in:
nazunalika 2020-12-23 11:40:29 -07:00
parent eacabeee1c
commit 44390be33b
3 changed files with 4 additions and 12 deletions

View File

@ -43,6 +43,7 @@ koji_web_tls_key: /etc/pki/tls/private/koji.rockylinux.org.key
# Kojira # Kojira
koji_kojira: true koji_kojira: true
koji_kojira_user: kojira koji_kojira_user: kojira
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

View File

@ -18,17 +18,7 @@
- name: Configure local koji admin - name: Configure local koji admin
import_tasks: koji-admin-local.yml import_tasks: koji-admin-local.yml
when: when: koji_admin_client
- koji_admin_client
- koji_admin_localuser
# This is specifically if we want the IPA account to also be an account on this
# system. ymmv.
- name: Configure ipa koji admin
import_tasks: koji-admin-ipa.yml
when:
- koji_admin_client
- not koji_admin_localuser
- name: Configure plugins - name: Configure plugins
import_tasks: plugins.yml import_tasks: plugins.yml

View File

@ -1,5 +1,6 @@
with user_id as (insert into users (name, status, usertype) values ('{{ koji_admin_user }}', 0, 0) returning id) with user_id as (insert into users (name, status, usertype) values ('{{ koji_admin_user }}', 0, 0) returning id)
insert into user_krb_principals (user_id, krb_principal) values ((select id from user_id),'{{ koji_admin_principal }}'); insert into user_krb_principals (user_id, krb_principal) values ((select id from user_id),'{{ koji_admin_principal }}');
insert into user_perms (user_id, perm_id, creator_id) values (1, 1, 1); insert into user_perms (user_id, perm_id, creator_id) values (1, 1, 1);
insert into users (name, status, usertype) values ('{{ koji_kojira_user }}', 0, 0); 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_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);