ARTbio / GalaxyKickStart

Ansible playbooks for Galaxy Server deployment
GNU General Public License v3.0
24 stars 22 forks source link

move also /tmp when using galaxy.movedata role #219

Closed drosofff closed 7 years ago

drosofff commented 7 years ago

@mvdbeek would you mind if we add also

mvdbeek commented 7 years ago

In some occasion the /tmp directory can get substantially large and with instances with small root volume it can be an issue. This occurs for instance when uploading large files to Galaxy I am doing it routinely with IFB instances and it works without pb

why not use a variable to specify the upload directory here?

mvdbeek commented 7 years ago

This is already available in ansible-galaxy-extras as nginx_upload_store_path. So if you change https://github.com/ARTbio/GalaxyKickStart/blob/master/group_vars/all#L77 to "{{ nginx_upload_store_path }}" and you set a default value in group_vars/all you can override this per deployment.

drosofff commented 7 years ago

Sure, if you're ok with nginx_upload_store = "/home/galaxy/galaxy/database/tmp/upload_store" in group_vars/all

drosofff commented 7 years ago

Actually, this fails because galaxy does not have sufficient rights to write in /home/galaxy/galaxy/database/tmp/, which crashes supervisorctl galaxy: The galaxy-extra role create the nginx_upload_store_path with root rights.