-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port galaxyproject/ansible-galaxy#152 from standalone role
- Loading branch information
Showing
13 changed files
with
112 additions
and
26 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
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 was deleted.
Oops, something went wrong.
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,14 @@ | ||
--- | ||
|
||
- name: galaxy gravity restart | ||
command: "{{ galaxy_venv_dir }}/bin/galaxyctl graceful" | ||
environment: | ||
GRAVITY_STATE_DIR: "{{ galaxy_gravity_state_dir }}" | ||
when: "galaxy_systemd_mode == 'gravity'" | ||
listen: "restart galaxy" | ||
|
||
- name: galaxyctl update | ||
command: "{{ galaxy_venv_dir }}/bin/galaxyctl update" | ||
environment: | ||
GRAVITY_STATE_DIR: "{{ galaxy_gravity_state_dir }}" | ||
when: "galaxy_systemd_mode == 'gravity'" |
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 @@ | ||
--- | ||
|
||
dependencies: | ||
- role: galaxyproject.galaxy.defaults |
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,17 @@ | ||
--- | ||
|
||
- name: Gravity setup | ||
block: | ||
|
||
- name: Register Galaxy config with Gravity | ||
command: "{{ galaxy_venv_dir }}/bin/galaxyctl register {{ galaxy_config_file }}" | ||
args: | ||
creates: "{{ galaxy_gravity_state_dir }}/configstate.yaml" | ||
|
||
- name: Update Gravity process management files | ||
command: "{{ galaxy_venv_dir }}/bin/galaxyctl update" | ||
args: | ||
creates: "{{ galaxy_gravity_state_dir }}/supervisor/supervisord.conf.d" | ||
|
||
environment: | ||
GRAVITY_STATE_DIR: "{{ galaxy_gravity_state_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,11 +1,22 @@ | ||
--- | ||
# defaults file for galaxyproject.galaxy | ||
|
||
- name: systemd daemon reload | ||
systemd: | ||
daemon_reload: yes | ||
scope: "{{ galaxy_systemd_root | ternary(omit, 'user') }}" | ||
|
||
- name: systemd galaxy restart | ||
- name: galaxy systemd start | ||
systemd: | ||
name: galaxy.service | ||
state: restarted | ||
name: galaxy.service | ||
state: started | ||
scope: "{{ galaxy_systemd_root | ternary(omit, 'user') }}" | ||
when: "galaxy_systemd_mode == 'gravity'" | ||
listen: "start galaxy" | ||
|
||
- name: galaxy mule restart | ||
systemd: | ||
name: galaxy.service | ||
state: restarted | ||
scope: "{{ galaxy_systemd_root | ternary(omit, 'user') }}" | ||
when: "galaxy_systemd_mode == 'mule'" | ||
listen: "restart galaxy" |
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
|
||
dependencies: | ||
- role: galaxyproject.galaxy.defaults | ||
- role: galaxyproject.galaxy.version |
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,17 +1,19 @@ | ||
--- | ||
|
||
- name: Deploy Galaxy systemd service unit | ||
- name: Deploy Galaxy Unit | ||
template: | ||
owner: root | ||
group: root | ||
owner: "{{ galaxy_systemd_root | ternary('root', omit) }}" | ||
group: "{{ galaxy_systemd_root | ternary('root', omit) }}" | ||
mode: 0644 | ||
src: galaxy.service.j2 | ||
dest: /etc/systemd/system/galaxy.service | ||
src: systemd/galaxy.service.j2 | ||
dest: "{{ galaxy_systemd_root | ternary('/etc/systemd/system/', ('~' ~ galaxy_user_name ~ '/.config/systemd/user') | expanduser) }}/galaxy.service" | ||
notify: | ||
- systemd daemon reload | ||
- systemd galaxy restart | ||
- start galaxy | ||
- restart galaxy | ||
|
||
- name: Enable Galaxy systemd service Unit | ||
- name: Enable Galaxy service unit | ||
systemd: | ||
name: galaxy.service | ||
enabled: yes | ||
scope: "{{ galaxy_systemd_root | ternary(omit, 'user') }}" |
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