Colmena | 332 Members | |
| A simple, stateless NixOS deployment tool - https://github.com/zhaofengli/colmena | 117 Servers |
| Sender | Message | Time |
|---|---|---|
| 21 Jun 2022 | ||
| lemmalamma: colmena stores the secrets unencrypted on the target hosts, so these "unauthorised" users can still fairly trivially get the secret keys by deploying their own code to the machines. | 01:03:55 | |
| you also don't need to split it into two, since colmena supports using a command to get secrets -- so you can store them together with your deployment, encrypted (with a tool of your choice) to the authorised users. | 01:05:11 | |
In reply to @linus:schreibt.jetztThis part makes sense. I don't want to enforce access control here. I just want developers who work on infrastructure code's lives easier by not requiring them to set up local secrets manually every time. | 01:07:15 | |
In reply to @linus:schreibt.jetztWhat common tools are there? | 01:07:32 | |
| gpg and age are the two main contenders I'd say | 01:07:44 | |
| gpg optionally wrapped with pass | 01:08:04 | |
| there's also sops and sops-nix, but I know too little about it to say if it applies here or not | 01:08:48 | |
| it's definitely on my list of things to look into one day, because it seems like it can do some nice things | 01:09:15 | |
| you can also check out agenix, it is basically sops-nix but with age and I am happily using it, not with colmena yet though.. it is dead simple especially when using the system ssh keys in /etc/ssh/ | 06:27:34 | |
In reply to @tiha889a:tu-dresden.deI made sops-nix work for me after a bit of wrangling. | 10:11:35 | |
| i'm wondering: is there a collection/ examples of how people use colmena? | 12:35:50 | |
| I'm using the colmena from git (commit 9db25bd) with flakes. I'm struggling to understand how to define a hive w/ 2 systems where one is using | 14:59:43 | |
| 15:02:05 | |
In reply to @janejasperous:one.ems.hostThx, yes that works! | 15:30:30 | |
| Until I change the
| 15:32:02 | |
In reply to @dantefromhell:matrix.orgEither use deploy.buildOnTarget, enable qemu binfmt emulation or try and get it running using pkgsCross for true cross compilation | 15:33:22 | |
| The problem is that you're running on x86_64 and nix doesn't know where/how to build aarch64-linux at the current state of your config | 15:34:02 | |
In reply to @schnecfk:ruhr-uni-bochum.de Thx, worked. For anyone interested, my solution was to add
to | 18:56:49 | |
In reply to @dantefromhell:matrix.orgNote that this method can be hit or miss. I've regularly had some minor problems with it, e.g. tests failing due to some qemu error | 22:22:00 | |
| I've had a lot of builds lock up with no progress until I kill them w/ qemu aarch64 emulated system. | 23:24:41 | |
| 22 Jun 2022 | ||
| Colmena is working well for me after I had trouble using nixops. I'm just curious: why are there so many nix-based deployment/config management tools? AFAIK nixops is the OG one. (I understand Colmena doesn't provision resource like nixops) Is there some history here? | 03:59:09 | |
| Nixops is the older one, but itβs not stateless. Nixos people like stateless solutions, so a few third party ones popped up. Mainly morph, deploy-rs, and colmena | 04:20:32 | |
In reply to @huyage:matrix.orgnixops is maybe more in terraform league | 09:46:31 | |
In reply to @huyage:matrix.org To add on the answer by Buckley (Which answers why so many alternatives to NixOps appeared), it's also because it's somewhat easy to build such a tool based on nix. Being a bit handwavy here, but it generally boils down to some combination of The deployment tools nonetheless offer a big plus, the more obvious ones would be secret management and the generally better user experience. | 11:15:00 | |
In reply to @janejasperous:one.ems.hostI'd lean towards using terraform over using nixops when the use case is there though | 11:42:55 | |
| because one of these two is actually maintained π | 13:17:22 | |
| also because nixops tries to do like 2% of the things that terraform covers and doesn't do as good of a job at it | 13:19:40 | |
In reply to @schnecfk:ruhr-uni-bochum.deIt's easy enough to deploy without a tool, I migrated from NixOps to flakes intending to then migrate to Colmena, but still haven't bothered. π NixOps too ambitious with a refactoring effort 1.7 - 1.8/2.0, left things in a broken state for a long time, leaving a multi-year window for other tools to pop up. | 20:27:47 | |
| I was really hoping NixOps + KVM would have given me a self-hosted cloud experience in my homelab, but gave up waiting. | 20:29:02 | |
| * I was really hoping NixOps + libvirt/KVM would have given me a self-hosted cloud experience in my homelab, but gave up waiting. | 20:29:37 | |