colmena icon indicating copy to clipboard operation
colmena copied to clipboard

Multi-Tier Deployment

Open liranco opened this issue 9 months ago • 3 comments

Hello!

I wonder whether Colmena could support a multi-tier deployment, something like this:

Build Server: Evaluates and builds the NixOS configuration, and pushes those to the deployment server.

Deployment Server: Stores only the final build artifacts (the built profiles) in its Nix store, without containing any source files or project code.

Target Servers: Where the configuration is finally deployed.

Currently, it's possible to use colmena apply push on the build server to push the built configurations into the nix store on the deployment server. It would be nice if the deployment server could then deploy those configurations to the target servers. For example, something like:

colmena apply --profile=/nix/store/…-system

on the deployment server could trigger the deployment to a target.

I'm willing to contribute to help implement this feature if there's interest.

Thanks for your time and for your work on Colmena!

liranco avatar Mar 27 '25 20:03 liranco

I certainly would like to use something like that. How would that be done without the tool using regular tools?

otavio avatar Mar 27 '25 22:03 otavio

Thanks for the response :) Could you clarify what you mean by "without the tool using regular tools"?

liranco avatar Mar 28 '25 00:03 liranco

What I mean is using the regular Nix command tools.

otavio avatar Mar 28 '25 11:03 otavio