Saltbox icon indicating copy to clipboard operation
Saltbox copied to clipboard

Automate Additional Portainer Environment

Open Barrow1990 opened this issue 1 year ago • 4 comments


Describe the problem When running multiple instances (Mediabox & Feederbox). Utilise the same instance of portioner instead of having multiple instances running on each version. Portainer is designed to handle multiple environments so having an automated way of implementing an environment for instance MediaBox & Feederbox in 1 dashboard will ease visibility

Describe any solutions you think might work So adding an environment is reasonably easy. (Add A Docker Standandalone Environment) It's how would this be integrated within the Saltbox Ecosystem.

Additional context I have a production and development environment running both saltbox. AS can be seen in the image

Image

This could be named as Mediabox & Feedbox or the type of role that's been installed

Barrow1990 avatar Feb 25 '25 11:02 Barrow1990

Portainer setup is manual and already allows this.

On Tue, Feb 25, 2025, 12:40 Barrow1990 @.***> wrote:


Describe the problem When running multiple instances (Mediabox & Feederbox). Utilise the same instance of portioner instead of having multiple instances running on each version. Portainer is designed to handle multiple environments so having an automated way of implementing an environment for instance MediaBox & Feederbox in 1 dashboard will ease visibility

Describe any solutions you think might work So adding an environment is reasonably easy. (Add A Docker Standandalone Environment https://docs.portainer.io/admin/environments/add/docker) It's how would this be integrated within the Saltbox Ecosystem.

Additional context I have a production and development environment running both saltbox. AS can be seen in the image image.png (view on web) https://github.com/user-attachments/assets/a2021d51-3727-47d6-b4a6-e49feed271a6

This could be named as Mediabox & Feedbox or the type of role that's been installed

— Reply to this email directly, view it on GitHub https://github.com/saltyorg/Saltbox/issues/316, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSIMLXXMBFUDR6JC5WPZVD2RRJDXAVCNFSM6AAAAABX2NH64WVHI2DSMVQWIX3LMV43ASLTON2WKOZSHA3TQMJRGIYTMMY . You are receiving this because you are subscribed to this thread.Message ID: @.***> [image: Barrow1990]Barrow1990 created an issue (saltyorg/Saltbox#316) https://github.com/saltyorg/Saltbox/issues/316

Describe the problem When running multiple instances (Mediabox & Feederbox). Utilise the same instance of portioner instead of having multiple instances running on each version. Portainer is designed to handle multiple environments so having an automated way of implementing an environment for instance MediaBox & Feederbox in 1 dashboard will ease visibility

Describe any solutions you think might work So adding an environment is reasonably easy. (Add A Docker Standandalone Environment https://docs.portainer.io/admin/environments/add/docker) It's how would this be integrated within the Saltbox Ecosystem.

Additional context I have a production and development environment running both saltbox. AS can be seen in the image image.png (view on web) https://github.com/user-attachments/assets/a2021d51-3727-47d6-b4a6-e49feed271a6

This could be named as Mediabox & Feedbox or the type of role that's been installed

— Reply to this email directly, view it on GitHub https://github.com/saltyorg/Saltbox/issues/316, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSIMLXXMBFUDR6JC5WPZVD2RRJDXAVCNFSM6AAAAABX2NH64WVHI2DSMVQWIX3LMV43ASLTON2WKOZSHA3TQMJRGIYTMMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

saltydk avatar Feb 25 '25 12:02 saltydk

An inventory toggle to deploy the agent instead of full Portainer could make sense. I believe it will require a port bind and cannot be reverse proxied and the setup within Portainer would need to be done manually.

owine avatar Feb 25 '25 12:02 owine

An inventory toggle to deploy the agent instead of full Portainer could make sense. I believe it will require a port bind and cannot be reverse proxied and the setup within Portainer would need to be done manually.

Which would be the best implementation? I feel they may be security implications if leaving it wide open without authentication

Barrow1990 avatar Feb 25 '25 15:02 Barrow1990

Ah yes the basic agent implementation does not have auth (why, Portainer, why) so perhaps the Edge Agent which does not require a port bind and calls from the agent host to the primary Portainer instance with an API key would be a better approach.

Personally, I use the standard Agent implementation bound to Tailscale only.

owine avatar Feb 25 '25 16:02 owine

@owine you want to do this in the role-refactor branch now or are we closing this?

saltydk avatar Aug 23 '25 23:08 saltydk

No we should close this. Deploying the edge agent isnt something we can easily automate. Portainer will generate the docker syntax anyway to speed deployment

owine avatar Aug 24 '25 01:08 owine