saltyorg / Saltbox

Ansible-based solution for rapidly deploying a Docker containerized cloud media server.
https://docs.saltbox.dev
GNU General Public License v3.0
571 stars 65 forks source link

[feature] support {{ role_name }}_paths_folders_list_custom to work with prowlarr_docker_volumes_custom #103

Closed hereisderek closed 1 year ago

hereisderek commented 1 year ago

Describe the problem i have a really small ssd therefore i need to be mindful where to use the precious space at, i was doing some du on the /opt folder, and found a few folders (e.g. metadata/cache in plex) i'm hoping to move out of /opt (,which i plan to host on the ssd). I noticed that we can override radarr_docker_volumes_custom in the localhost.yml folder, which is really nice, however I couldn't find a way to create the host folder if they don't exist.

Describe any solutions you think might work i guess we could create a custom role just for this, but maybe we could follow the pattern of radarr_docker_volumes_custom and create something like {{ role_name }}_paths_folders_list_custom, and create those folders (maybe even check permissions) in the common role after reading those values out?

Additional context Add any other context or screenshots about the feature request here.

saltydk commented 1 year ago

You can override the current folder list. I agree that it makes more sense to have a separate variable in this case and will think on how we can rework the roles to make such edits less annoying to do than having to edit all the roles.

saltydk commented 1 year ago

Something like this? https://github.com/saltyorg/Saltbox/commit/583ea5c89af45fc2ac5c07732f82f3dc81500bee

hereisderek commented 1 year ago

Something like this? 583ea5c

pretty much, except that i still don't see a way to add custom folder lists

saltydk commented 1 year ago

You just add

rolename_paths_folders_list_custom:
  - /some/folder

to the inventory.

saltydk commented 1 year ago

Inventory is covered here https://docs.saltbox.dev/saltbox/inventory/

hereisderek commented 1 year ago

ah, somehow I missed that, my bad.

yes this is exactly what i wanted

saltydk commented 1 year ago

I'll close this then.