mirror of
https://src.koozali.org/infra/smeserver-koji.git
synced 2024-12-23 07:57:00 +01:00
minir bug fixes
This commit is contained in:
parent
b1b9d15934
commit
d3fd961e2f
@ -33,7 +33,11 @@ curl $SILENT $SCRIPT_GIT/deploy-koji.sh > $SCRIPT_DIR/deploy-koji.sh
|
||||
curl $SILENT $SCRIPT_GIT/bootstrap-build.sh > $SCRIPT_DIR/bootstrap-build.sh
|
||||
chmod o+x $SCRIPT_DIR/*.sh
|
||||
|
||||
# install any required packages
|
||||
dnf install -y netcat $QUIET
|
||||
|
||||
# ask for required parameters (ssh settings and build server FQDN)
|
||||
KOJID_CAPACITY=16
|
||||
KOJI_HUB_FQDN="$(hostname -f)"
|
||||
while true ; do
|
||||
read -p "Country Code (eg, US) " COUNTRY_CODE
|
||||
@ -80,9 +84,8 @@ cat > $SCRIPT_DIR/parameters.sh <<- EOT
|
||||
## KOJI RPM BUILD AND TRACKER
|
||||
export KOJI_DIR=/mnt/koji
|
||||
export KOJI_HUB_FQDN="$KOJI_HUB_FQDN"
|
||||
export KOJI_BUILD_FQDN="$KOJI_BUILD_FQDN"
|
||||
export KOJI_URL=http://"$KOJI_HUB_FQDN"
|
||||
export KOJID_CAPACITY=16
|
||||
export KOJID_CAPACITY=$KOJID_CAPACITY
|
||||
export TAG_NAME=sme
|
||||
# Use for koji SSL certificates
|
||||
export COUNTRY_CODE='$COUNTRY_CODE'
|
||||
@ -141,11 +144,13 @@ while true ; do
|
||||
;;
|
||||
IP=* )
|
||||
BIP=${RESPONSE#*=}
|
||||
# add this builder into the hosts file
|
||||
echo "$BIP $KOJI_BUILD_FQDN\n" >> /etc/hosts
|
||||
continue
|
||||
;;
|
||||
FQDN=* )
|
||||
KOJI_BUILD_FQDN=${RESPONSE#*=}
|
||||
continue
|
||||
;;
|
||||
*)
|
||||
continue
|
||||
@ -204,7 +209,7 @@ while true ; do
|
||||
ssh $QUIET root@$KOJI_BUILD_FQDN $SCRIPT_DIR/deploy-koji-nfs-client.sh
|
||||
# deploy koji builder
|
||||
ssh $QUIET root@$KOJI_BUILD_FQDN $SCRIPT_DIR/deploy-koji-builder.sh
|
||||
fi
|
||||
done
|
||||
|
||||
#
|
||||
bootstrap-build.sh
|
Loading…
Reference in New Issue
Block a user