diff options
author | anatoly techtonik <techtonik@gmail.com> | 2014-03-05 02:08:12 +0300 |
---|---|---|
committer | anatoly techtonik <techtonik@gmail.com> | 2014-03-05 02:08:12 +0300 |
commit | e58531f8076a06c5fb13e845fb8361ba3dbba09a (patch) | |
tree | e885b897af2fadd45c97f30645292fd14c38ce9e /testing/buildbot.yml | |
parent | 822e6b71690fde35d73b8075f03f1fac3244918f (diff) | |
download | scons-e58531f8076a06c5fb13e845fb8361ba3dbba09a.tar.gz |
Add Ansible playbook to setup buildbot instance more easily
Diffstat (limited to 'testing/buildbot.yml')
-rw-r--r-- | testing/buildbot.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/buildbot.yml b/testing/buildbot.yml new file mode 100644 index 00000000..85902151 --- /dev/null +++ b/testing/buildbot.yml @@ -0,0 +1,20 @@ +# Ansible playbook to setup buildbot instance +# http://scons.org/wiki/InstallingBuildbotSlaves +--- +# host is overridable with --extra-vars 'host=address' +- hosts: "{{ host | default('localhost') }}" + vars: + - botuser: scons2 + - hgrc: /home/{{ botuser }}/.hgrc + + tasks: + # --- install requirements --- + - name: ubuntu/debian - make sure mercurial is installed + apt: pkg=mercurial + + - name: create .hgrc if necessary + command: touch {{ hgrc }} creates={{ hgrc }} + - name: enable mercurial purge extension + ini_file: dest={{ hgrc }} backup=yes + section=extensions option=hgext.purge + value= |