Skip to content

Commit

Permalink
configure buildbot.bb.net
Browse files Browse the repository at this point in the history
* create jail on vm1
* make sure it has a local interface (for manhole etc)
  • Loading branch information
Mikhail Sobolev committed Jan 2, 2015
1 parent 7e8bb7a commit 29020bb
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
7 changes: 7 additions & 0 deletions host-vm1.yml
Expand Up @@ -19,5 +19,12 @@
ip_address:
- 'lagg0|140.211.10.237'
- 'vlan0|192.168.80.237'
- role: jail
name: buildbot
hostname: buildbot.buildbot.net
ip_address:
- 'lo0|127.0.0.239' # localhost, must be first
- 'lagg0|140.211.10.239'
- 'vlan0|192.168.80.239'

# vim:ts=2:sw=2:noai:nosi
44 changes: 44 additions & 0 deletions jail-buildbot.yml
@@ -0,0 +1,44 @@
---
- name: configure buildbot
hosts: buildbot
gather_facts: no
connection: local
sudo: yes
vars:
env_name: venv
web_host_name: "buildbot.buildbot.net"
master_service_name: "buildmaster"
master_dir: master

roles:
- base
- role: user
user_id: "{{ worker_account }}"
user_name: Buildbot Worker Account
- role: virtualenv
venv_user: "{{ worker_account }}"
venv_home_dir: "{{ getent_passwd[worker_account].4 }}"
venv_name: "{{ env_name }}" # Another possibility is to just define correct variable above
venv_packages:
- sqlite3
venv_python_packages:
- pysqlite
- role: bb-master
bb_user: "{{ worker_account }}"
bb_user_home: "{{ getent_passwd[worker_account].4 }}"
bb_env_dir: "{{ getent_passwd[worker_account].4 }}/{{ env_name }}" # Must match the one created above
bb_master_dir: "{{ getent_passwd[worker_account].4 }}/{{ master_dir }}"
bb_branch: "eight" # A branch in buildbot.git
bb_config_branch: "master" # A branch in metabbotcfg.git
bb_service: "{{ master_service_name }}"
- role: supervisor-service
service_name: "{{ master_service_name }}"
service_dir: "{{ getent_passwd[worker_account].4 }}/{{ master_dir }}"
service_command: "{{ getent_passwd[worker_account].4 }}/{{ env_name }}/bin/buildbot start --nodaemon"
service_user: "{{ worker_account }}"
- role: nginx
nginx_template: proxy
server_name: "{{ web_host_name }}"
upstream_url: 192.168.80.239:8010

# vim:ts=2:sw=2:noai:nosi
1 change: 1 addition & 0 deletions local.yml
Expand Up @@ -29,5 +29,6 @@
- include: "jail-nine.yml"
- include: "jail-www.yml"
- include: "jail-docs.yml"
- include: "jail-buildbot.yml"

# vim:ts=2:sw=2:noai:nosi

0 comments on commit 29020bb

Please sign in to comment.