From d3a608059ba8f26b66731ea0c830e8c64d5554a0 Mon Sep 17 00:00:00 2001 From: George T Kramer Date: Wed, 7 Nov 2018 17:43:17 -0800 Subject: [PATCH] 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 --- koji-setup/deploy-koji.sh | 4 ---- koji-setup/parameters.sh | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/koji-setup/deploy-koji.sh b/koji-setup/deploy-koji.sh index 04c2288..ef23dc9 100755 --- a/koji-setup/deploy-koji.sh +++ b/koji-setup/deploy-koji.sh @@ -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 diff --git a/koji-setup/parameters.sh b/koji-setup/parameters.sh index f385e12..53da6a4 100644 --- a/koji-setup/parameters.sh +++ b/koji-setup/parameters.sh @@ -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