!BgJZHVOYkwVcEKLAyM:nixos.org

NixOS Deployments

1250 Members
NixOS Deployment tooling309 Servers

Load older messages


SenderMessageTime
30 Jul 2021
@roberthensing:matrix.orgRobert Hensing (roberth)I'd like to be able to fetch a specific file for a specific deployment14:40:03
@roberthensing:matrix.orgRobert Hensing (roberth)and I'd like to do the same for locking, because it doesn't make sense to lock many deployments if you only need one14:40:51
@roberthensing:matrix.orgRobert Hensing (roberth)or am I supposed to poke around in some global objects to figure out the intent?14:42:29
@roberthensing:matrix.orgRobert Hensing (roberth)(I'm not too familiar yet)14:42:46
1 Aug 2021
@jamie:memes.nzJamie joined the room.08:01:24
2 Aug 2021
@mvtva:matrix.orgmvnetbiz

Provisioning affects configuration management: for instance, if we instantiate an EC2 machine as part of a larger deployment, it may be necessary to put
the IP address or hostname of that machine in a configuration file on another machine. NixOps takes care of this
automatically.

Is there an already existing way of doing something like this but instead of IP address, refer to the contents of a file on another machine? Like a certificate generated by a systemd unit? What information besides IP address can be used? If public ssh host key was usable, I could configure a service on 1 machine to get the certificate from another.

23:39:55
@mvtva:matrix.orgmvnetbizI'm referring to NixOps, but maybe there is something else capable of doing something like this.23:40:35
3 Aug 2021
@roberthensing:matrix.orgRobert Hensing (roberth)a NixOps resource for generating an ssh key pair would be helpful for this13:02:30
@amine.chikhaoui:matrix.orgAmine Chikhaoui roberth: https://github.com/NixOS/nixops/blob/master/nix/command-output.nix ? 13:27:11
@roberthensing:matrix.orgRobert Hensing (roberth) Amine Chikhaoui: cool. Does that save the output indefinitely or run every time? 13:27:54
@amine.chikhaoui:matrix.orgAmine ChikhaouiI think it does store the output here https://github.com/NixOS/nixops/blob/master/nixops/resources/commandOutput.py#L9713:28:48
@roberthensing:matrix.orgRobert Hensing (roberth)it also runs when the script changes. That might be a problem13:30:07
@roberthensing:matrix.orgRobert Hensing (roberth)depends how tolerant the deployment is of the change13:30:26
@amine.chikhaoui:matrix.orgAmine Chikhaouihm well if you change the script, for me it makes sense that the resource output changes13:30:52
@roberthensing:matrix.orgRobert Hensing (roberth)yeah it does seem like a good default13:31:10
@roberthensing:matrix.orgRobert Hensing (roberth)it wouldn't be appropriate for something like NixOps' own ssh keys that it uses to deploy the machines13:32:32
@amine.chikhaoui:matrix.orgAmine Chikhaouiah right, those are handled by the machine resource I think13:33:18
@roberthensing:matrix.orgRobert Hensing (roberth)yes, I'm just using it as a hypothetical example13:33:41
@roberthensing:matrix.orgRobert Hensing (roberth)it's probably ok to just cycle keys instantly in most situations I guess13:34:48
@roberthensing:matrix.orgRobert Hensing (roberth)and where it isn't you can work around it with a script on the host13:35:09
@roberthensing:matrix.orgRobert Hensing (roberth)would be nice for network expressions to be expressed in the module system13:38:16
@roberthensing:matrix.orgRobert Hensing (roberth)it'd provide opportunity to refine and document such applications of resources etc13:38:50
4 Aug 2021
@ilkecan:matrix.orgilkecan joined the room.12:34:00
5 Aug 2021
@ajz229:matrix.orgMate Hajzso changed their display name from ajz229 to Mate Hajzso.11:44:14
6 Aug 2021
@roberthensing:matrix.orgRobert Hensing (roberth) Amine Chikhaoui mvnetbiz we do have an ssh keypair resource: https://github.com/NixOS/nixops/blob/master/nixops/resources/ssh_keypair.py 10:48:34
@roberthensing:matrix.orgRobert Hensing (roberth)just no docs10:49:01
@roberthensing:matrix.orgRobert Hensing (roberth)like what's the point then?10:49:11
@cw:kernelpanic.cafecw (? days since last shower) changed their display name from continuouswave to cw (? days since last shower).18:10:42
@roberthensing:matrix.orgRobert Hensing (roberth) changed their display name from roberth to Robert Hensing (roberth).19:46:32
@kity:kity.wtfash (it/its) changed their display name from ashkitten (it/its) 🏳️‍⚧️ to ash (it/its).21:03:11

There are no newer messages yet.


Back to Room ListRoom Version: 6