rundeck
rundeck copied to clipboard
Feature request: download rundeck plugins by name
In an environment variable, if I pass a comma delimited list of plugin names from rundeck's plugin repo, I'd like them to be installed automatically.
Hi @lavahot
I'm away from my laptop for another week or so, but can look into implementing this unless you have a PR yourself? For the list, are you looking just to provide the plugin name only meaning that we'll have to maintain the mapping for name to artifact URL or just have the user supply the artifact URL itself?
Just the name. The cool thing about the repo is that the first artifact in every release is the plugin zip. You don't have to do any mapping, just know the name of the plugin to get it. The GitHub API works really well for this. I have a powershell-based container that does this pretty well (that I unfortunately can't share), but I don't like the behavior of accompanying containers that are really only meant to be run once. It's kind of clunky as the main rundeck container has to wait for such a container to finish before doing anything.
Doing this in Bash seems to be more difficult than in powershell as it can't natively read JSON or handle objects, but installing powershell just to run a single script seems like a lot of overhead. Maybe this could be done in Java more easily.