[Lsb-messages] /var/www/bzr/lsb/devel/buildbot-config r190: Load slave passwords from a file.

Jeff Licquia licquia at linuxfoundation.org
Tue Jan 31 22:24:47 UTC 2012


------------------------------------------------------------
revno: 190
committer: Jeff Licquia <licquia at linuxfoundation.org>
branch nick: buildbot-config
timestamp: Tue 2012-01-31 17:24:47 -0500
message:
  Load slave passwords from a file.
modified:
  lsb_master.cfg
-------------- next part --------------
=== modified file 'lsb_master.cfg'
--- a/lsb_master.cfg	2012-01-30 23:08:59 +0000
+++ b/lsb_master.cfg	2012-01-31 22:24:47 +0000
@@ -208,13 +208,12 @@
 # the 'slaves' list defines the set of allowable buildslaves. Each element is
 # a tuple of bot-name and bot-password. These correspond to values given to
 # the buildslave's mktap invocation.
-c['slaves'] = [BuildSlave("lfbuild-x86_64", "bot1passwd"),
-               BuildSlave("lfbuild-x86", "ail1Aebu"),
-               BuildSlave("lfbuild-ia64", "quae7Moh"),
-               BuildSlave("lfbuild-ppc32", "AiSh4aej"),
-               BuildSlave("lfbuild-ppc64", "ai2agaeT"),
-               BuildSlave("lfbuild-s390", "aeGh0ooy"),
-               BuildSlave("lfbuild-s390x", "ahtoop3O")]
+
+c['slaves'] = []
+slave_password_file = open("/opt/buildbot/slave_pwds")
+for line in slave_password_file:
+    (user, pw) = line.strip().split(":")
+    c['slaves'].append(BuildSlave(user, pw)
 
 # to limit to two concurrent builds on a slave, use
 #  c['slaves'] = [BuildSlave("bot1name", "bot1passwd", max_builds=2)]



More information about the lsb-messages mailing list