Skip to content

Commit

Permalink
Merge pull request #192 from galaxyproject/mode-on-static
Browse files Browse the repository at this point in the history
Allow changing mode of static files
  • Loading branch information
hexylena authored Apr 15, 2023
2 parents 07b7bbe + 0e5bc4a commit c96682c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ galaxy_app_config_section: "{{ 'galaxy' if galaxy_config_style in ('yaml', 'yml'

# Galaxy configuration files will be written with these permissions (mode argument to Ansible copy/template module)
galaxy_config_perms: 0640
galaxy_config_perms_public: 0644

# The default Galaxy configuration, ensures that Galaxy can find all of the configs if galaxy_config_dir !=
# galaxy_server_dir
Expand Down Expand Up @@ -319,6 +320,8 @@ galaxy_errordocs_prefix: /error
# templates to be installed on the managed host.
galaxy_config_files: []
galaxy_config_templates: []
# Like above, except with world readable permissions
galaxy_config_files_public: []

# Default Gravity configuration
galaxy_gravity_state_dir: "{{ (galaxy_mutable_data_dir, 'gravity') | path_join }}"
Expand Down
11 changes: 11 additions & 0 deletions tasks/static_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@
notify:
- restart galaxy

- name: Install additional Galaxy config files (static, public)
copy:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
backup: "{{ galaxy_backup_configfiles }}"
mode: "{{ galaxy_config_perms_public }}"
group: "{{ __galaxy_user_group }}"
with_items: "{{ galaxy_config_files_public }}"
notify:
- restart galaxy

- name: Install additional Galaxy config files (template)
template:
src: "{{ item.src }}"
Expand Down

0 comments on commit c96682c

Please sign in to comment.