diff --git a/README.md b/README.md index 0e3854c..0bec04d 100644 --- a/README.md +++ b/README.md @@ -36,51 +36,17 @@ On your koji hub server: chmod o+x install-koji-farm.sh ./install-koji-farm.sh -### Using the scripts yourself +### Adding additional Build servers -The install script now does all of this, but, if you want to do individual components, or understand the process better... +To add additional build servers into your farm, just run the following script on your hub (it should already be there from the install, but if not) -1. On the koji hub, copy these scripts into your ~/bin directory and make sure they are executeable + koji-add-builder.sh [debug] - mkdir -p ~/bin - curl https://src.koozali.org/smedev/smeserver-koji/raw/branch/master/koji-setup/gencert.sh > ~/bin/gencert.sh - curl https://src.koozali.org/smedev/smeserver-koji/raw/branch/master/koji-setup/globals.sh > ~/bin/globals.sh - curl https://src.koozali.org/smedev/smeserver-koji/raw/branch/master/koji-setup/parameters.sh > ~/bin/parameters.sh - curl https://src.koozali.org/smedev/smeserver-koji/raw/branch/master/koji-setup/deploy-koji.sh > ~/bin/deploy-koji.sh - curl https://src.koozali.org/smedev/smeserver-koji/raw/branch/master/koji-setup/bootstrap-build.sh > ~/bin/bootstrap-build.sh - curl https://src.koozali.org/smedev/smeserver-koji/raw/branch/master/koji-setup/deploy-koji-nfs-server.sh > ~/bin/deploy-koji-nfs-server.sh - chmod a+x ~/bin/*.sh +It should already be there from the install, but if not -1. Edit ~/bin/parameters.sh as needed. If running in a production environment, be sure to supply reasonable SSL certificate field values. + curl https://src.koozali.org/smedev/smeserver-koji/raw/branch/master/koji-setup/koji-add-builder.sh > ~/bin/koji-add-builder.sh + chmod o+x ~/bin/koji-add-builder.sh -1. start the deploy +### Other components - deploy-koji.sh - -If koji builder machine is not the same as koji master machine: - -1. On the koji master, run - - deploy-koji-nfs-server.sh - -1. On the koji builder, copy over keys and parameters from the Hub - - mkdir -p /etc/pki/koji - scp root@:/etc/pki/koji/.pem /etc/pki/koji/. - scp root@:/etc/pki/koji/koji_ca_cert.crt /etc/pki/koji/. - mkdir -p ~/bin - scp root@:/root/bin/globals.sh ~/bin/. - scp root@:/root/bin/parameters.sh ~/bin/. - You will need to edir ~/bin/parameters.sh and change the KOJI_HUB_FQN to the correct value (NOT $(hostname -f)) - -1. On the koji builder, copy down the scripts needed and run - - curl https://src.koozali.org/smedev/smeserver-koji/raw/branch/master/koji-setup/deploy-koji-nfs-client.sh > ~/bin/deploy-koji-nfs-client.sh - curl https://src.koozali.org/smedev/smeserver-koji/raw/branch/master/koji-setup/deploy-koji-builder.sh > ~/bin/deploy-koji-builder.sh - chmod a+x ~/bin/*.sh - deploy-koji-nfs-client.sh - deploy-koji-builder.sh - -1. Return to the hub and run (this isn't right yet....) - - bootstrap-build.sh +The other scripts in the repository are used by the install-koji-farm.sh and koji-add-builder.sh scripts or I'm still experimenting with them :)