-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from arBmind/develop
upgraded codebase - buildbot 0.9.0rc1, Ansible 2.1
- Loading branch information
Showing
60 changed files
with
529 additions
and
497 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
- name: restart buildmaster | ||
- name: restart buildbot master | ||
file: | ||
path: "{{ buildbot_master_basedir }}/restart.txt" | ||
state: touch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
- name: reconfig buildmaster | ||
- name: reconfigure buildbot master | ||
file: | ||
path: "{{ buildbot_master_basedir }}/reconfig.txt" | ||
state: touch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
# extra configuration folders | ||
buildbot_master_workers_path: '{{ buildbot_master_basedir }}/{{ buildbot_master_workers_dir }}' | ||
buildbot_master_projects_path: '{{ buildbot_master_basedir }}/{{ buildbot_master_projects_dir }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
--- | ||
buildbot_master_repo: https://github.com/buildbot/buildbot.git | ||
buildbot_master_repo_version: 0bc3a370b0885b9ddac8b97fe28eed83713d31cf | ||
buildbot_master_repo_update: no | ||
buildbot_version: '0.9.0rc1' | ||
|
||
# location where buildbot is installed to | ||
buildbot_master_path: /opt/buildbot | ||
buildbot_master_path: /var/buildbot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
- name: restart buildmasters | ||
- name: restart buildbot masters | ||
file: | ||
path: "{{ buildbot_master_path }}/restart.txt" | ||
state: touch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,40 @@ | ||
--- | ||
- name: Add PPA | ||
apt_repository: | ||
repo: "{{ item }}" | ||
with_items: buildbot_master_apt_ppas | ||
|
||
- name: install APT packages | ||
apt: | ||
name: "{{ item }}" | ||
update_cache: yes | ||
state: latest | ||
cache_valid_time: 86400 | ||
with_items: buildbot_master_apt_packages | ||
with_items: "{{ buildbot_master_apt_packages }}" | ||
|
||
- name: Install NPM packages | ||
npm: | ||
global: yes | ||
name: "{{ item }}" | ||
with_items: buildbot_master_npm_packages | ||
- name: update pip | ||
pip: | ||
name: pip | ||
state: latest | ||
|
||
- name: Install PIP packages | ||
pip: | ||
name: "{{ item }}" | ||
with_items: buildbot_master_pip_packages | ||
with_items: "{{ buildbot_master_pip_packages }}" | ||
|
||
- name: Git checkout | ||
git: | ||
repo: "{{ buildbot_master_repo }}" | ||
version: "{{ buildbot_master_repo_version }}" | ||
dest: '{{ buildbot_master_path }}' | ||
update: '{{ buildbot_master_repo_update }}' | ||
register: buildbot_master_git_result | ||
- name: Install PIP buildbot | ||
pip: | ||
name: "{{ item }}" | ||
version: "{{ buildbot_version }}" | ||
notify: | ||
- restart buildmasters | ||
|
||
# data not available | ||
# - name: Stop for Update | ||
# command: 'buildbot stop {{ buildbot_master_basedir }}' | ||
# failed_when: no | ||
# when: buildbot_master_git_result.changed | ||
|
||
- name: Clean for Update | ||
file: | ||
path: '{{ item }}' | ||
state: absent | ||
when: buildbot_master_git_result.changed | ||
- restart buildbot masters | ||
with_items: | ||
- '{{ buildbot_master_path }}/pkg/buildbot_pkg.egg-info' | ||
- '{{ buildbot_master_path }}/master/buildbot.egg-info' | ||
- '{{ buildbot_master_path }}/www/base/buildbot_www.egg-info' | ||
|
||
- name: Install Pkg | ||
command: 'pip install --editable pkg' | ||
args: | ||
chdir: '{{ buildbot_master_path }}' | ||
creates: '{{ buildbot_master_path }}/pkg/buildbot_pkg.egg-info' | ||
notify: | ||
- restart buildmasters | ||
- buildbot | ||
- buildbot-www | ||
- buildbot-waterfall-view | ||
- buildbot-console-view | ||
|
||
- name: Install Master | ||
command: 'pip install --editable master' | ||
args: | ||
chdir: '{{ buildbot_master_path }}' | ||
creates: '{{ buildbot_master_path }}/master/buildbot.egg-info' | ||
notify: | ||
- restart buildmasters | ||
|
||
- name: Build Frontend | ||
command: 'make frontend' | ||
args: | ||
chdir: '{{ buildbot_master_path }}' | ||
creates: '{{ buildbot_master_path }}/www/base/buildbot_www.egg-info' | ||
notify: | ||
- restart buildmasters | ||
- name: Path | ||
file: | ||
path: "{{ buildbot_master_path }}" | ||
state: directory | ||
|
||
- name: Store Facts | ||
set_fact: | ||
buildbot_master_path: '{{ buildbot_master_path }}' | ||
tags: | ||
- facts | ||
tags: [always] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
--- | ||
buildbot_master_apt_ppas: | ||
- 'ppa:chris-lea/node.js' | ||
|
||
buildbot_master_apt_packages: | ||
- git # required to checkout | ||
- nodejs # required for gulp | ||
- python-pip # required for buildbot pip | ||
- build-essential # required for building buildbot package | ||
- python-dev # required for compiling | ||
- libffi-dev # pyopenssl | ||
|
||
buildbot_master_npm_packages: | ||
- gulp | ||
|
||
buildbot_master_pip_packages: | ||
- pyopenssl | ||
- jrnl | ||
- service_identity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.