In a support discussion titled “One plugins.yml file for two discourse sites,” IAmGav asks if it’s possible to include a remote plugins.yml file into app.yml via command (e.g., using wget) to avoid manual copy-pasting across two sites. neounix responds that while not directly supported, it’s technically doable by creating a local template directory (e.g., /var/discourse/mytemplates), storing plugin definitions in a plugins.template.yml file, and referencing it in the app.yml via the templates section. They suggest hosting the template directory as a Git repo and modifying the launcher script to auto-pull it — though they admit this is overkill compared to simply copying the plugin list manually. neounix confirms the template approach works for plugin installation during container build, but hasn’t tested the auto-pull step yet. They encourage IAmGav to experiment if interested, calling it a fun sysadmin puzzle, but note that manual copy-paste remains the simpler solution.
Is it possible to use a cmd to include a file from a remote location into the app.yml file?
I have two sites that i would like to have a standard list of plugins. Instead of copy and pasting it everything, and sometimes forget to do it, Would I be able to have it on and just pull it in every time I rebuild the app?
Even though I have not worked on this part yet, but I’m sure it is doable; because I have already tested the part about pulling in the plugins in the container build from a template, and it works fine; so the only piece left for this approach is to add code to launcher and test it to pull the mytemplates repo from github.
However, to be frank; this technique seems like a lot of unnecessary work:
Editing launcher to pull the template from a repo
Adding a new template entry to the yml file (for the plugins)
It is so easy to copy-and-paste into the yml files and “be done with it”; but I also find this idea interesting. Sys admin puzzles are always fun for me, so it was fun to think about this for you.
Anyway, the short answer to your question @IAmGav is that “yes, it is doable” and of course, if you want to try it, then “go for it”.