ansible-role-kojihub/templates/koji-pgsql.sql.j2

6 lines
463 B
Plaintext
Raw Normal View History

2020-12-23 03:52:59 +00:00
with user_id as (insert into users (name, status, usertype) values ('{{ koji_admin_user }}', 0, 0) returning id)
2020-12-23 09:12:56 +00:00
insert into user_krb_principals (user_id, krb_principal) values ((select id from user_id),'{{ koji_admin_principal }}');
2020-12-23 03:52:59 +00:00
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);
2020-12-23 09:12:56 +00:00
INSERT INTO user_perms (user_id, perm_id, creator_id) VALUES (2, 10, 1);