New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 80190


Ignore:
Timestamp:
07/06/11 08:35:46 (4 years ago)
Author:
wsiegrist@…
Message:

Use out of band files for sensitive password storage. Update settings for running on the real server.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/buildbot/master.cfg

    r80188 r80190  
    11# -*- python -*- 
    22# ex: set syntax=python: 
     3 
     4import json 
    35 
    46# This is a buildmaster config file. It must be installed as 
     
    1214# (where /opt/local shouldn't be messed with) and the production server (where 
    1315# it has to be) 
    14 production = False 
     16production = True 
    1517 
    1618####### BUILDSLAVES 
     
    2022# slave name and password must be configured on the slave. 
    2123from buildbot.buildslave import BuildSlave 
    22 if production: 
    23     # FIXME 
    24     c['slaves'] = [] 
     24 
     25c['slaves'] = [] 
     26if production: 
     27    slavedata = json.load(open('slaves.json')) 
     28    for slave, pwd in slavedata.items(): 
     29        c['slaves'].append(BuildSlave(slave, pwd)) 
    2530else: 
    2631    c['slaves'] = [BuildSlave("snowleopard-x86_64", "pass")] 
     32 
    2733 
    2834# 'slavePortnum' defines the TCP port to listen on for connections from slaves. 
    2935# This must match the value configured into the buildslaves (with their 
    3036# --master option) 
    31 c['slavePortnum'] = 9989 
     37c['slavePortnum'] = 17000 
    3238 
    3339####### CHANGESOURCES 
     
    4147if production: 
    4248    from buildbot.changes.pb import PBChangeSource 
    43     # FIXME: real username and password 
    44     c['change_source'] = PBChangeSource(user='change', passwd='changepw') 
     49    sourcedata = json.load(open('source.json')) 
     50    c['change_source'] = PBChangeSource(user=sourcedata[0], passwd=sourcedata[1]) 
    4551else: 
    4652    from buildbot.changes.svnpoller import SVNPoller 
     
    162168 
    163169if production: 
    164     # FIXME 
    165     c['builders']= [] 
    166 else: 
    167     c['builders']= [ 
    168         BuilderConfig(name="buildbase", 
    169           slavenames=["snowleopard-x86_64"], 
    170           factory=base_factory), 
    171         BuilderConfig(name="buildports", 
    172           slavenames=["snowleopard-x86_64"], 
    173           factory=ports_factory) 
    174         ] 
     170    slavenames = ["apple-snowleopard-x86_64"] 
     171else: 
     172    slavenames = ["snowleopard-x86_64"] 
     173 
     174c['builders']= [ 
     175    BuilderConfig(name="buildbase", 
     176                  slavenames=slavenames, 
     177                  factory=base_factory), 
     178    BuilderConfig(name="buildports", 
     179                  slavenames=slavenames, 
     180                  factory=ports_factory) 
     181    ] 
    175182 
    176183####### STATUS TARGETS 
     
    191198    forceAllBuilds = False, 
    192199    pingBuilder = False, 
    193     stopBuild = False, 
     200    stopBuild = True, 
    194201    stopAllBuilds = False, 
    195202    cancelPendingBuild = False, 
    196203) 
    197 c['status'].append(html.WebStatus(http_port=8010, authz=authz_cfg)) 
     204c['status'].append(html.WebStatus(http_port=80, authz=authz_cfg)) 
    198205 
    199206####### PROJECT IDENTITY 
     
    212219# without some help. 
    213220 
    214 c['buildbotURL'] = "http://localhost:8010/" 
     221c['buildbotURL'] = "http://build.macports.org/" 
    215222 
    216223####### DB URL 
Note: See TracChangeset for help on using the changeset viewer.