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:
George T Kramer
2018-11-07 17:47:12 -08:00
parent c20e9e6a58
commit d3a608059b
2 changed files with 1 additions and 4 deletions
-4
View File
@@ -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
+1
View File
@@ -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