!zghijEASpYQWYFzriI:nixos.org

Hydra

397 Members
113 Servers

Load older messages


SenderMessageTime
20 Oct 2021
@grahamc:nixos.org@grahamc:nixos.orgI thought about migrating all the opens to use parens and got lazy ... :)16:52:58
@janne.hess:helsinki-systems.dedas_junderstandable17:10:37
@grahamc:nixos.org@grahamc:nixos.orgI made them all open's use parens17:16:22
@grahamc:nixos.org@grahamc:nixos.orgI'm going to smash the merge button since nothing material has changed since the reviews, except the parens 17:16:36
@grahamc:nixos.org@grahamc:nixos.orgthank you for the reviews :)17:16:45
@grahamc:nixos.org@grahamc:nixos.org
data "hydra_job" "system" {
    project = "app"
    jobset = "production"
    job = "webserver"
}

resource "aws_instance" "web" {
    # ...
    provisioner "remote-exec" {
        inline = [
            "nix-env --profile /nix/var/nix/profiles/system --set '${data.hydra_job.system.outputs.out.path}'",
            "/nix/var/nix/profiles/system/bin/switch-to-configuration switch",
        ]
    }
}
19:07:38
@grahamc:nixos.org@grahamc:nixos.org *
data "hydra_job" "system" {
    project = "app"
    jobset = "production"
    job = "webserver"
}

resource "aws_instance" "web" {
    # ...
    provisioner "remote-exec" {
        inline = [
            "nix-env --profile /nix/var/nix/profiles/system --set '${data.hydra_job.system.outputs.out.path}'",
            "/nix/var/nix/profiles/system/bin/switch-to-configuration switch",
        ]
    }
}
19:07:41
@grahamc:nixos.org@grahamc:nixos.org *
data "hydra_job" "system" {
    project = "app"
    jobset = "production"
    job = "webserver"
}

resource "aws_instance" "web" {
    # ...
    provisioner "remote-exec" {
        inline = [
            "nix-env --profile /nix/var/nix/profiles/system --set '${data.hydra_job.system.outputs.out.path}'",
            "/nix/var/nix/profiles/system/bin/switch-to-configuration switch",
        ]
    }
}
19:07:51
@grahamc:nixos.org@grahamc:nixos.orgjust something I'm noodling on19:09:53
@janne.hess:helsinki-systems.dedas_jis this some hail alternative?19:10:03
@grahamc:nixos.org@grahamc:nixos.orgno19:10:10
@grahamc:nixos.org@grahamc:nixos.orgbut you could use this to boot a NixOS AMI and get its very first config deployed which is set up to pull from hydra on a regular baslis19:10:34
@grahamc:nixos.org@grahamc:nixos.org * but you could use this to boot a NixOS AMI and get its very first config deployed which is set up to pull from hydra on a regular basis19:10:36
@janne.hess:helsinki-systems.dedas_jah that's just an initial provisioning thing19:10:56
@grahamc:nixos.org@grahamc:nixos.orgyeah19:11:00
@grahamc:nixos.org@grahamc:nixos.orgor maybe you do immutable deployments and make new instances for every deployment19:11:16
@janne.hess:helsinki-systems.dedas_jbtw, is it just me or was the code on your blog pretty similiar to the stuff I sent to you a couple of months back? :D19:11:19
@janne.hess:helsinki-systems.dedas_j
In reply to @grahamc:nixos.org
or maybe you do immutable deployments and make new instances for every deployment
that's a nice icea
19:11:28
@janne.hess:helsinki-systems.dedas_j
In reply to @grahamc:nixos.org
or maybe you do immutable deployments and make new instances for every deployment
* that's a nice idea
19:11:30
@grahamc:nixos.org@grahamc:nixos.orgI mean ... it is similar ... :P 19:11:58
@grahamc:nixos.org@grahamc:nixos.orgthere are only so many ways to do it!19:12:16
@grahamc:nixos.org@grahamc:nixos.org:joy: 19:12:20
@janne.hess:helsinki-systems.dedas_jyou could do it in haskell for no reason :D19:13:17
@grahamc:nixos.org@grahamc:nixos.orgI could see justifiable reasons19:13:28
@tomberek:matrix.orgtomberekI've used the "remote-exec" as a deployment alternative before. With lifecycle options it's effective even as a continuous provisioning. Pointing to hydra output via Terraform is nice.19:14:01
@grahamc:nixos.org@grahamc:nixos.orglike if you're putting a lot of work in to observability around it19:14:03
@grahamc:nixos.org@grahamc:nixos.orghttps://github.com/DeterminateSystems/terraform-provider-hydra/issues/7219:15:23
@casey:hubns.netcransom
In reply to @grahamc:nixos.org
data "hydra_job" "system" {
    project = "app"
    jobset = "production"
    job = "webserver"
}

resource "aws_instance" "web" {
    # ...
    provisioner "remote-exec" {
        inline = [
            "nix-env --profile /nix/var/nix/profiles/system --set '${data.hydra_job.system.outputs.out.path}'",
            "/nix/var/nix/profiles/system/bin/switch-to-configuration switch",
        ]
    }
}
that is smooth. we do the ami baking, but the next speed hack, i was contemplating was for the deploy to upload a user-data for cloud-init that does a nix-store -r <system path>; <system path>/bin/switch-to-configuration switch and then either launch or reboot machines.
20:17:32
@hpfr:matrix.orghpfr joined the room.21:12:52
@hpfr:matrix.orghpfr

maybe this is a better place to ask?

https://nixos.org/channels/nixos-unstable is behind https://status.nixos.org, which I didn't even think was possible. shouldn't the status page wait until the channel itself actually updates?

21:13:21

Show newer messages


Back to Room ListRoom Version: 6