Merge lp:~benji/charms/oneiric/buildbot-slave/small-tweaks into lp:~yellow/charms/oneiric/buildbot-slave/trunk

Proposed by Benji York
Status: Superseded
Proposed branch: lp:~benji/charms/oneiric/buildbot-slave/small-tweaks
Merge into: lp:~yellow/charms/oneiric/buildbot-slave/trunk
Diff against target: 61 lines (+12/-7) (has conflicts)
3 files modified
examples/lpbuildbot.yaml (+3/-3)
hooks/install (+8/-3)
revision (+1/-1)
Text conflict in hooks/install
To merge this branch: bzr merge lp:~benji/charms/oneiric/buildbot-slave/small-tweaks
Reviewer Review Type Date Requested Status
Yellow Squad Pending
Review via email: mp+96210@code.launchpad.net

Description of the change

These are some small changes to our Buildbot slave charm:

- tweak the lpbuildbot example config to specify alternate key names
- make the buildbot group creation unconditional

To post a comment you must log in.

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'examples/lpbuildbot.yaml'
2--- examples/lpbuildbot.yaml 2012-03-01 18:22:10 +0000
3+++ examples/lpbuildbot.yaml 2012-03-06 18:30:27 +0000
4@@ -1,10 +1,10 @@
5 buildbot-slave:
6- builders: lucid_lp,lucid_db_lp
7+ builders: lucid_lp
8 script-retrieval-method: bzr_cat
9- script-url: "http://bazaar.launchpad.net/~yellow/launchpad/setuplxc/utilities/setuplxc.py"
10+ script-url: "http://bazaar.launchpad.net/~launchpad-pqm/launchpad/devel/utilities/setuplxc.py"
11 script-path: setuplxc.py
12 # The buildbot user's home directory is /var/lib/buildout.
13 # The LP dependencies will be in /var/lib/buildout/dependencies.
14- script-args: "-u buildbot -e launchpad-pqm@canonical.com -f 'Launchpad PQM' /var/lib/buildbot"
15+ script-args: "-u buildbot -e launchpad-pqm@canonical.com -f 'Launchpad PQM' -s launchpad_lxc_id_rsa {installdir}"
16 extra-repository: deb http://us.archive.ubuntu.com/ubuntu/ lucid main universe
17 buildbot-pkg: buildbot/lucid
18
19=== modified file 'hooks/install'
20--- hooks/install 2012-03-02 17:07:11 +0000
21+++ hooks/install 2012-03-06 18:30:27 +0000
22@@ -67,7 +67,11 @@
23 # default, and requires a "-y" flag to be set.
24 assume_yes = None if distribution == 'lucid' else '-y'
25 try:
26+<<<<<<< TREE
27 run('apt-add-repository', assume_yes, extra_repository)
28+=======
29+ run('apt-add-repository', '--yes', extra_repository)
30+>>>>>>> MERGE-SOURCE
31 run('apt-get', 'update')
32 except subprocess.CalledProcessError as e:
33 log('Error adding repository: ' + extra_repository)
34@@ -172,6 +176,10 @@
35 log('Creating initial buildbot slave in ' + buildbot_dir)
36 create_slave('temporary', 'temporary', buildbot_dir=buildbot_dir)
37
38+ # Some versions of LXC require the user to have a group. Bug #942850.
39+ run('addgroup', 'buildbot')
40+ run('usermod', '--gid', 'buildbot', 'buildbot')
41+
42 config_json.set(config)
43
44 retrieve = METHODS.get(method)
45@@ -181,9 +189,6 @@
46 # need (e.g. those that create lxc containers). We choose sh as
47 # a standard and basic "system" shell.
48 run('usermod', '-s', '/bin/sh', 'buildbot')
49- # Some versions of LXC require the user to have a group. Bug #942850.
50- run('addgroup', 'buildbot')
51- run('usermod', '--gid', 'buildbot', 'buildbot')
52 sys.exit(handle_script(retrieve, url, path, args))
53
54
55
56=== modified file 'revision'
57--- revision 2012-03-01 16:25:20 +0000
58+++ revision 2012-03-06 18:30:27 +0000
59@@ -1,1 +1,1 @@
60-1
61+8

Subscribers

People subscribed via source and target branches

to all changes: