copr-builders: speedup spawner by disabling RHSM on host

Just an experiment, not sure whether it helps.
This commit is contained in:
Pavel Raiskup 2024-02-28 15:34:04 +01:00
parent fc82478567
commit 0272ed65b0
2 changed files with 8 additions and 0 deletions

View file

@ -80,4 +80,5 @@ try_indefinitely subscription-manager register --force \
--username "$opt_user" \
--password "$opt_pass" \
--name "$opt_system"
try_indefinitely subscription-manager attach --pool "$opt_pool_id"

View file

@ -97,6 +97,13 @@
when:
- preparing_image
- name: disable subscription manager on host
ini_file:
dest: /etc/dnf/plugins/subscription-manager.conf
section: main
option: enabled
value: "0"
- name: install the subscription-manager script
copy:
src: copr-rh-subscribe.sh