ansible-galaxy icon indicating copy to clipboard operation
ansible-galaxy copied to clipboard

Systemd service unit template only works with root-dir layout

Open natefoo opened this issue 4 years ago • 4 comments

This is because it consumes galaxy_root. On other layouts we should use a sensible default.

natefoo avatar Aug 23 '21 13:08 natefoo

urgh, curse of the configuration matrix. yea we should fix that. I wish we had data for how many people actually used things other than root-dir, because I suspect it's 1% of folks.

hexylena avatar Aug 30 '21 09:08 hexylena

You kinda shouldn't use root-dir for network filesystems though, as there is a lot of stuff that is better kept local. I actually was trying to come up with a new standard layout that properly splits things up for a standard secured network deployment but it's trickier than I expected.

natefoo avatar Sep 01 '21 16:09 natefoo

This would be great @natefoo. The k8s deployments could also benefit from this, especially when dispatching to existing clusters.

nuwang avatar Sep 02 '21 12:09 nuwang

What is currently the recommended layout to use if you would like to have the datadir on NFS?

I'm managing to do so with a custom layout, but am running into this issue. Is there currentlt a good workaround for this issue? Would it be possible to simply pass in a different value into the systemd template when galaxy_root is not set?

I can still get everything to work by setting galaxy_manage_systemd to false, and then manually running galaxyctl start, which bootstraps the systemd services. But it feels counterintuitive to set galaxy_manage_systemd to false.

dometto avatar Apr 30 '24 12:04 dometto