Koji host arches belong in host_config now

This commit is contained in:
Mikolaj Izdebski 2018-11-01 01:17:38 +00:00
parent 5dfd44ca88
commit eba9bd03ea

View file

@ -83,8 +83,10 @@ select now() as time, 'adding staging host {{ host }}' as msg;
delete from host where name='{{ host }}';
delete from users where name='{{ host }}';
insert into users (name, usertype, krb_principal, status) values ('{{ host }}', 1, 'compile/{{ host }}@STG.FEDORAPROJECT.ORG', 0);
insert into host (user_id, name, arches) values (
(select id from users where name='{{host}}'), '{{host}}', '{{ group.arches }}');
insert into host (user_id, name) values (
(select id from users where name='{{host}}'), '{{host}}');
insert into host_config (host_id, arches, creator_id) values (
(select id from hosts where name='{{host}}'), '{{ group.arches }}', 2045);
{% for channel in [ 'default', 'appliance', 'vm', 'secure-boot', 'compose', 'eclipse', 'images', 'image'] + group.extra_channels|default([]) %}
insert into host_channels (host_id, channel_id) values (
(select id from host where name='{{host}}'), (select id from channels where name='{{channel}}'));