Skip to content

Commit 05e41d5

Browse files
authored
Merge pull request #234 from CESNET/fix_postgres_access_to_apikey
Fix postgres access to apikey
2 parents fd68444 + 3232bcf commit 05e41d5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

galaxy.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@
260260
dest: "/home/{{ galaxy_user_name }}/.galaxy_api_key"
261261
owner: "{{ galaxy_user_name }}"
262262
group: "{{ galaxy_user_group_name }}"
263-
mode: '0600'
263+
mode: '0640'
264264
tags: cron
265265
when: "inventory_hostname in ['galaxy-qa1.galaxy.cloud.e-infra.cz', 'usegalaxy.cz', 'galaxy-umsa.grid.cesnet.cz']"
266266
no_log: true
@@ -283,6 +283,13 @@
283283
group: postgres
284284
when: "'usegalaxy.cz' in inventory_hostname"
285285
tags: cron
286+
- name: Add the user postgres to the galaxy user primary group, to access the Galaxy API key
287+
ansible.builtin.user:
288+
name: postgres
289+
groups: "{{ galaxy_user_group_name }}"
290+
append: yes
291+
when: "'usegalaxy.cz' in inventory_hostname"
292+
tags: cron
286293
- name: Setup user - group association rutine
287294
ansible.builtin.cron:
288295
name: "Add E-infra users to E-infra group"

0 commit comments

Comments
 (0)