A build farm update

Andrew Bartlett abartlet at samba.org
Fri May 2 21:33:37 GMT 2008


On Fri, 2008-05-02 at 14:53 +0200, Stefan (metze) Metzmacher wrote:
> Hi Andrew, hi Jelmer,
> 
> > It also reduces the admin load, as adding machines to the right files,
> > sending passwords and subscribing users the the mailing list is now
> > automated. 
> 
> That sounds nice. So we're using sqlite3?

Yep.

> Can you explain how machines are added, removed, listed...
> so that other people can extent this work or fix bugs...

There are a few new files in the build farm subversion repo.  

hostdb.pm contains the logic
admin.pl is the script run to add/remove/enquire about hosts - it simply
prompts to the terminal.  It generates the rsyncd.secrets and
web/hosts.list files after each edit.

fill_db.pl is run every 2 mins from cron, to add new builds as they are
found.

mail-dead-hosts.pl runs every day to mail hosts which have not reported
in for a week.  It will repeat this mail every week after.  The initial
run sent out a pile of mail, but this hopefully won't be repeated, once
the long-dead machines are weeded out.

If you have ssh access to the build account, you must be on the mail
alias for build too, as the admin script will send an e-mail out from
this account with the new machine's password.  All mails are also BCC'ed
to the build alias (we may make this alias a mailman list of it's own). 

Users are also automatically subscribed to the build-farmers mailing
list when they join (again by means of a mail from the script).

In short, to add/remove machines, ssh to the build account on samba.org,
cd master; ./admin.pl

I hope this helps.

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Red Hat Inc.                  http://redhat.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20080503/06d08353/attachment.bin


More information about the samba-technical mailing list