mirror of
https://src.koozali.org/infra/smeserver-koji.git
synced 2024-11-22 01:27:29 +01:00
add install parameters into README
This commit is contained in:
parent
035ac9d80d
commit
327a49103d
@ -37,6 +37,14 @@ On your koji hub server:
|
|||||||
chmod o+x install-koji-farm.sh
|
chmod o+x install-koji-farm.sh
|
||||||
./install-koji-farm.sh
|
./install-koji-farm.sh
|
||||||
|
|
||||||
|
There are optional parameters available on the install-koji-farm.sh script
|
||||||
|
|
||||||
|
install-koji-farm.sh [web=\<web server FQDN\> | build=\<build server FQDN\> | debug]
|
||||||
|
|
||||||
|
* The web server FQDN defaults to the hub FQDN, if not enetered.
|
||||||
|
* You can have multiple build= parameters (up to 7 parameters in total). This will bypass the build server prompt loop.
|
||||||
|
* If you enter build=<\hub FQDN\> you will get an all-in-one server with the builder installed on the hub.
|
||||||
|
|
||||||
The web interface will be available at http://\<FQDN of hub\>/koji
|
The web interface will be available at http://\<FQDN of hub\>/koji
|
||||||
|
|
||||||
### Adding additional Build servers
|
### Adding additional Build servers
|
||||||
|
@ -4,7 +4,7 @@ set -e
|
|||||||
DEBUG=
|
DEBUG=
|
||||||
KOJI_HUB_FQDN="$(hostname -f)"
|
KOJI_HUB_FQDN="$(hostname -f)"
|
||||||
KOJI_WEB_FQDN=$KOJI_HUB_FQDN
|
KOJI_WEB_FQDN=$KOJI_HUB_FQDN
|
||||||
KOJI_Build_FQDN=
|
KOJI_BUILD_FQDNS=
|
||||||
for param in $1 $2 $3 $4 $5 $6 $7; do
|
for param in $1 $2 $3 $4 $5 $6 $7; do
|
||||||
if [ $param ] ; then
|
if [ $param ] ; then
|
||||||
case $param in
|
case $param in
|
||||||
@ -13,7 +13,7 @@ for param in $1 $2 $3 $4 $5 $6 $7; do
|
|||||||
web=* )
|
web=* )
|
||||||
KOJI_WEB_FQDN=${param#=*} ;;
|
KOJI_WEB_FQDN=${param#=*} ;;
|
||||||
build=* )
|
build=* )
|
||||||
KOJI_BUILD_FQDN=$KOJI_BUILD_FQDN" "${param#=*} ;;
|
KOJI_BUILD_FQDNS=$KOJI_BUILD_FQDNS" "${param#=*} ;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
break
|
break
|
||||||
@ -216,8 +216,8 @@ deploy_builder () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# if builders added as command line parameters, use those
|
# if builders added as command line parameters, use those
|
||||||
if [ $KOJI_BUILD_FQDN ] ; then
|
if [ $KOJI_BUILD_FQDNS ] ; then
|
||||||
for FQDN in ${KOJI_HUB_FQDN} ; do
|
for FQDN in ${KOJI_HUB_FQDNS} ; do
|
||||||
deploy_builder $FQDN
|
deploy_builder $FQDN
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user