Skip to content

Commit

Permalink
Merge pull request #159 from Slugger70/config_perms
Browse files Browse the repository at this point in the history
Altered group for privsep dirs to allow galaxy_user to read
  • Loading branch information
hexylena authored Jun 28, 2022
2 parents 8a6fdc1 + 939532e commit f0bb396
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/paths.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
path: "{{ item }}"
state: directory
owner: "{{ __galaxy_privsep_user_name }}"
group: "{{ __galaxy_privsep_user_group }}"
group: "{{ __galaxy_user_group }}" #This is set so that the galaxy_user can read the files in the priv_sep dirs. (As priv_sep dirs have defauly perms of 0640.)
mode: "{{ __galaxy_dir_perms }}"
with_items: "{{ galaxy_privsep_dirs }}"
when: item | default(False)
Expand Down
4 changes: 4 additions & 0 deletions tasks/static_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
dest: "{{ item.dest }}"
backup: "{{ galaxy_backup_configfiles }}"
mode: "{{ galaxy_config_perms }}"
group: "{{ __galaxy_user_group }}"
with_items: "{{ galaxy_config_files }}"
notify:
- restart galaxy
Expand All @@ -24,6 +25,7 @@
dest: "{{ item.dest }}"
backup: "{{ galaxy_backup_configfiles }}"
mode: "{{ galaxy_config_perms }}"
group: "{{ __galaxy_user_group }}"
with_items: "{{ galaxy_config_templates }}"
notify:
- restart galaxy
Expand All @@ -41,6 +43,7 @@
src: local_tool_conf.xml.j2
dest: "{{ galaxy_config_dir }}/local_tool_conf.xml"
mode: "{{ galaxy_config_perms }}"
group: "{{ __galaxy_user_group }}"
when: galaxy_local_tools is defined

- name: Append local_tool_conf.xml to tool_config_file Galaxy config option
Expand Down Expand Up @@ -126,6 +129,7 @@
dest: "{{ galaxy_config_file }}"
backup: "{{ galaxy_backup_configfiles }}"
mode: "{{ galaxy_config_perms }}"
group: "{{ __galaxy_user_group }}"
notify:
- galaxyctl update
- restart galaxy
Expand Down

0 comments on commit f0bb396

Please sign in to comment.