From fb10ea27120b6d636c7d94a40d31eba79650450e Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Thu, 10 Sep 2015 22:30:37 +0000 Subject: [PATCH] Attempt to add some arm builders to staging koji. --- inventory/builders | 4 ++++ .../staging-sync/templates/koji-reset-staging.sql | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/inventory/builders b/inventory/builders index 0892b2e65a..adc3dec8fe 100644 --- a/inventory/builders +++ b/inventory/builders @@ -110,6 +110,10 @@ arm01-builder21.arm.fedoraproject.org arm01-builder22.arm.fedoraproject.org arm01-builder23.arm.fedoraproject.org +[arm-stg] +arm01-builder22.arm.fedoraproject.org +arm01-builder23.arm.fedoraproject.org + # # These are primary arch builders. # diff --git a/playbooks/manual/staging-sync/templates/koji-reset-staging.sql b/playbooks/manual/staging-sync/templates/koji-reset-staging.sql index cb20653c33..8115fb327e 100644 --- a/playbooks/manual/staging-sync/templates/koji-reset-staging.sql +++ b/playbooks/manual/staging-sync/templates/koji-reset-staging.sql @@ -82,6 +82,16 @@ insert into host_channels (host_id, channel_id) values ( {% endfor %} {% endfor %} +{% for host in groups['arm-stg'] %} +insert into users (name, usertype, status) values ('{{ host }}', 1, 0); +insert into host (user_id, name, arches) values ( + (select id from users where name='{{host}}'), '{{host}}', 'armhfp'); +{% for channel in [ 'default', 'createrepo', 'maven', 'appliance', 'livecd', 'vm', 'secure-boot', 'compose', 'eclipse', 'images', 'image'] %} +insert into host_channels (host_id, channel_id) values ( + (select id from host where name='{{host}}'), (select id from channels where name='{{channel}}')); +{% endfor %} +{% endfor %} + -- Add some people to be admins, only in staging. Feel free to grow this list.. select now() as time, 'adding staging admin(s)' as msg;