mirror of
https://github.com/clearlinux/koji-setup-scripts.git
synced 2026-11-18 07:55:16 +00:00
Parameterize kojid capacity
Because the kojid capacity is difficult and error-prone to calculate automatically, let the user define this. Default the kojid capacity to what is listed in the pagure documentation. Signed-off-by: George T Kramer <george.t.kramer@intel.com>
This commit is contained in:
@@ -291,10 +291,6 @@ sudo -u kojiadmin koji add-host "$KOJI_SLAVE_FQDN" i386 x86_64
|
||||
sudo -u kojiadmin koji add-host-to-channel "$KOJI_SLAVE_FQDN" createrepo
|
||||
|
||||
# A note on capacity
|
||||
KOJID_CAPACITY="$(( "$(nproc --all)" / 3 ))"
|
||||
if [[ "$KOJID_CAPACITY" -eq 0 ]]; then
|
||||
KOJID_CAPACITY=1
|
||||
fi
|
||||
sudo -u kojiadmin koji edit-host --capacity="$KOJID_CAPACITY" "$KOJI_SLAVE_FQDN"
|
||||
|
||||
# Generate certificates
|
||||
|
||||
@@ -9,3 +9,4 @@ export KOJI_DIR=/srv/koji
|
||||
export CGIT_FQDN="$KOJI_MASTER_FQDN"
|
||||
#export EXTERNAL_REPO=https://cdn.download.clearlinux.org/releases/"$(curl https://download.clearlinux.org/latest)"/clear/\$arch/os/
|
||||
export TAG_NAME=clear
|
||||
export KOJID_CAPACITY=16
|
||||
|
||||
Reference in New Issue
Block a user