Back
A slave buildmachine does not have to run on the same machine as the master. 
Normally you should be able to use multiple slave buildmachines on one 
computer if they have a unique ID, but this hasn't been tested yet.  
You have to install at least the package pydar2-slave.

* First you have to add a login to the master for your buildmachine: add a 
section with type=BUILDMACHINEID to the accounts.conf of the master. For 
example:

[delirium]
type=BUILDMACHINE
fullname=delirium.kotnet.org
password=pydar2
right0=REGISTER_SLAVE
right1=SEND_RESULT_FILE_NAME
right2=SEND_BUILD_RESULT
right3=ADD_DISTRO_ARCH
right4=GET_COMMAND


I would like to suggest to use another password :) Currently you 
always need those rights for a slave buildmachine. Make sure the file stays
only readable by root and pydar2master.


* You also need to configure the file /etc/pydar2/slave.conf for your 
buildmachine. If you want to use multiple buildmachines on one 
computer, then you will have to create multiple slave.conf files and 
use the -s option of pydar-buildserver-slave.py. An example config file:

[slave]
buildmachineid=delirium
buildmasterurl=http://localhost:9999/
password=pydar2

[distroarchs]
0=rhel4-i386
1=fc3-i386

The buildmachineid must be the same as the name of the section in 
accounts.conf. The password should also be the same. The section 
distroarchs contains a list of distribution/architecture combinations 
for which you want to build rpm files on this machine. Make sure you 
use one from the table pydar2_distroarch in the database.

The url must point to the xmlrpc endpoint of the master buildserver. 
You configured that in the file /etc/pydar2/

* Now you will have to configure the yum configuration of each of 
these distroarchs. There are example yum configurations in /etc/pydar2/yum/.
You can override the yum configuration for a certain slave buildmachine 
by placing a file in /etc/pydar2/yum/[buildmachineid]/, for example:
/etc/pydar2/yum/delirium/rhel4-i386.conf .

It's probably best if you setup a local mirror first with yam. This way you 
can avoid quite some build problems.