!zghijEASpYQWYFzriI:nixos.org

Hydra

396 Members
113 Servers

Load older messages


SenderMessageTime
20 Oct 2021
@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

There are no newer messages yet.


Back to Room ListRoom Version: 6