18 Apr 2022 |
Buckley | Then multiple deployments… | 20:38:26 |
aanderse | 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 |
Linux 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 |
Buckley | Oh never mind then :/ | 20:39:33 |
Buckley | Might be remembering another tool, I’ve never used multi tags on colmena | 20:39:55 |
aanderse | i guess i just put my defaults into a separate file and include it for each separate deployment, etc... | 20:41:15 |
Buckley | You 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 flake | 20:43:31 |
Buckley | stub hives | 20:43:44 |
aanderse | Buckley: that sounds ideal | 20:45:14 |
aanderse | not that i read much into it, but i thought colmena depended on the output called colmena | 20:45:30 |
Linux Hackerman | Being able to specify an "installable" to use as the hive would be nicer though. | 20:45:39 |
aanderse | so how does my flake.nix look in your scenario? | 20:45:42 |
aanderse | Linux Hackerman: yes, that | 20:45:52 |
Buckley | 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 | definitely need nodes | 20:47:40 |
Buckley | That’s what I used to do when I used morph anyway | 20:47:44 |
Buckley | Well then it’ll be a little more involved | 20:48:19 |
Buckley | You could always procedurally generate your tags… so like produce a tag deploy1_webservers for machines which are both deployment1 and webservers | 20:49:27 |
Buckley | Not sure exactly what that code would look like right now | 20:49:43 |
Linux Hackerman | This all sounds like not-so-great workarounds for a problem that would be best solved by adding the feature to colmena. | 20:50:02 |
Buckley | That would be the over engineered way | 20:50:04 |
aanderse | ok cool | 20:50:30 |
Buckley | Tbh 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 more | 20:51:06 |
Linux Hackerman | I 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 | 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 |
aanderse | Linux Hackerman: bingo | 20:51:59 |
Linux Hackerman | I mean, yes, tag selection could be more powerful and it's something I'd like to have as well. But I'm pretty sure it's not the right solution to aanderse's problem :) | 20:52:23 |
aanderse | learning rust and contributing a feature might be the solution to my problem... but i feel like that isn't happening soon | 20:53:29 |
aanderse | so i'll hack something else up for now :) | 20:53:40 |
19 Apr 2022 |
Zhaofeng Li | Sorry all, my homeserver was completely borked for a week and still catching up. The last scrollback I see after April 12 is "Not sure exactly what that code would look like right now" from earlier today. Could someone fill me in with the conversation? | 06:50:19 |