Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-Start buildbot services based on a fact in start role, not in crea…
…te/install handler
- Loading branch information
Showing
8 changed files
with
28 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
--- | ||
- name: restart buildbot master | ||
service: | ||
name: buildbot | ||
state: restarted | ||
|
||
set_fact: | ||
buildbot_master_restart: true |
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,4 @@ | ||
--- | ||
- name: reconfigure buildbot master | ||
service: | ||
name: buildbot | ||
state: reloaded | ||
- name: restart buildbot master | ||
set_fact: | ||
buildbot_master_restart: true |
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,4 @@ | ||
--- | ||
- name: restart buildbot masters | ||
service: | ||
name: buildbot | ||
state: restarted | ||
set_fact: | ||
buildbot_master_restart: true |
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,6 +1,12 @@ | ||
--- | ||
|
||
- name: start buildbot master | ||
- name: enable buildbot master | ||
service: | ||
name: buildbot | ||
state: started | ||
enabled: yes | ||
|
||
- name: restart buildbot master | ||
service: | ||
name: buildbot | ||
state: restarted | ||
when: "{{ buildbot_master_restart | default(False) }}" |
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: reconfigure buildbot master | ||
file: | ||
path: "{{ buildbot_master_basedir }}/reconfig.txt" | ||
state: touch | ||
service: | ||
name: "buildbot" | ||
state: reloaded |
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,7 +1,13 @@ | ||
--- | ||
- meta: flush_handlers | ||
|
||
- name: Restart Worker | ||
service: | ||
name: buildbot-worker | ||
state: restarted | ||
when: "{{ buildbot_worker_restart | default(False) }}" | ||
|
||
- name: Start Worker | ||
service: | ||
name: buildbot-worker | ||
state: started | ||
enabled: yes |