Colmena | 310 Members | |
| A simple, stateless NixOS deployment tool - https://github.com/zhaofengli/colmena | 110 Servers |
| Sender | Message | Time |
|---|---|---|
| 21 Jun 2022 | ||
| 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 | |
| 23 Jun 2022 | ||
| I was reading on github a bit about bootstrapping w/ colmena and the general answer was "no - because it requires state tracking". I was pondering if the approach to introduce a `colmena bootstrap` action to isolate bootstrapping from applying would remove the need for tracking state? | 12:23:35 | |
In reply to @dantefromhell:matrix.orgI'm not really helpful here, but just for clarification: Are you referring to these PRs? https://github.com/zhaofengli/colmena/issues/42 and https://github.com/zhaofengli/colmena/issues/68 | 12:52:24 | |
In reply to @dantefromhell:matrix.org* I'm not really helpful here, but just for clarification: Are you referring to these Issues? https://github.com/zhaofengli/colmena/issues/42 and https://github.com/zhaofengli/colmena/issues/68 | 12:52:33 | |
| Note that provisioning and bootstrapping are two separate concerns. | 14:23:34 | |
| Bootstrapping doesn't require tracking state. It only requires a static contract of the (yet) anonymous node. | 14:24:16 | |
| * Bootstrapping doesn't require tracking state. It only requires a stable contract of the (yet) anonymous node. | 14:24:30 | |
| How to reach it? And does it comply to any sort of colmena-nixos interface? | 14:25:43 | |
In reply to @schnecfk:ruhr-uni-bochum.deI've also successfully used Pulumi instead of Terraform for provisioning and Colmena takes over after that. I still dream of a world where I can do both with Nix. | 18:34:34 | |
In reply to @dantefromhell:matrix.orgBy bootstrap do you mean provisioning? Apparently some people think it doesn't not necessarily require state: https://www.bejarano.io/terraform-stateless/ | 18:38:13 | |
In reply to @dantefromhell:matrix.org* By bootstrap do you mean provisioning? Apparently some people think it does not necessarily require state: https://www.bejarano.io/terraform-stateless/ | 18:38:57 | |
| 23:43:51 | ||