!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

332 Members
A simple, stateless NixOS deployment tool - https://github.com/zhaofengli/colmena116 Servers

Load older messages


SenderMessageTime
18 Apr 2022
@aanderse:nixos.devaanderse any way to specify multiple colmena outputs in a flake? basically i want a repo that houses n "hives" and tagging isn't enough to keep them separate 20:34:28
@aanderse:nixos.devaanderse maybe something like outputs = { ... }: { colmena-hive-1 = { ... }; colmena-hive-2 = { ... }; } then pass a flag tocolmena to tell it which one to process? 20:36:20
@aanderse:nixos.devaanderseor am i just thinking tags aren't my solution when really they are?20:36:53
@buckley310:matrix.orgBuckley Well, I guess that depends why you feel tags aren’t sufficient 20:37:17
@buckley310:matrix.orgBuckley I think you can combine multiple tags to filter output down more, like @deployment1,@webservers will pick only the webservers which are also deployment1, but double check me there 20:38:09
@buckley310:matrix.orgBuckleyThen multiple deployments…20:38:26
@aanderse:nixos.devaanderse defaults apply to all machines regardless of tags, i don't want to accidentally reference a machine in a different tag via nodes, i want to grab all attributes from all machines in a tag 20:38:45
@linus:schreibt.jetztLinux Hackerman
In reply to @buckley310:matrix.org
I think you can combine multiple tags to filter output down more, like @deployment1,@webservers will pick only the webservers which are also deployment1, but double check me there
nope, that's all @deployment1 and all @webservers
20:39:23
@buckley310:matrix.orgBuckleyOh never mind then :/20:39:33
@buckley310:matrix.orgBuckley Might be remembering another tool, I’ve never used multi tags on colmena 20:39:55
@aanderse:nixos.devaandersei guess i just put my defaults into a separate file and include it for each separate deployment, etc...20:41:15
@buckley310:matrix.orgBuckleyYou can have one flake that has all your hosts in it, then you can have little hive files that just import specific hosts from your flake20:43:31
@buckley310:matrix.orgBuckleystub hives20:43:44
@aanderse:nixos.devaanderse Buckley: that sounds ideal 20:45:14
@aanderse:nixos.devaanderse not that i read much into it, but i thought colmena depended on the output called colmena 20:45:30
@linus:schreibt.jetztLinux HackermanBeing able to specify an "installable" to use as the hive would be nicer though.20:45:39
@aanderse:nixos.devaanderse so how does my flake.nix look in your scenario? 20:45:42
@aanderse:nixos.devaanderse Linux Hackerman: yes, that 20:45:52
@buckley310:matrix.orgBuckley Probably just use the non-flake hive files in a folder, then they make calls into the top level flake and just select the hosts they want. Although then that would mess with the nodes input… not sure if that’s an issue 20:47:20
@aanderse:nixos.devaanderse definitely need nodes 20:47:40
@buckley310:matrix.orgBuckley That’s what I used to do when I used morph anyway 20:47:44
@buckley310:matrix.orgBuckley Well then it’ll be a little more involved 20:48:19
@buckley310:matrix.orgBuckleyYou could always procedurally generate your tags… so like produce a tag deploy1_webservers for machines which are both deployment1 and webservers20:49:27
@buckley310:matrix.orgBuckleyNot sure exactly what that code would look like right now20:49:43
@linus:schreibt.jetztLinux HackermanThis all sounds like not-so-great workarounds for a problem that would be best solved by adding the feature to colmena.20:50:02
@buckley310:matrix.orgBuckleyThat would be the over engineered way20:50:04
@aanderse:nixos.devaanderseok cool20:50:30
@buckley310:matrix.orgBuckleyTbh I feel like the need for multiple deployments points to a deficcieccy in the tagging system. I actually thought you could combine tags to filter down more20:51:06
@linus:schreibt.jetztLinux HackermanI don't think so, there are good reasons to keep the deployments separate anyway. Like if the configs aren't supposed to refer to each other.20:51:49
@aanderse:nixos.devaanderse i have great interest in utilizing nodes
i'm not sure how you would make that work (well) with the tagging system
20:51:50

Show newer messages


Back to Room ListRoom Version: 6