Changes in prod:

- migrate courgette and concombre to M710q machines with SSD+HDD
- migrate prod/c* to nixos 22.11
This commit is contained in:
Alex 2023-03-13 19:58:37 +01:00
parent d56f895a1c
commit 385882c74c
5 changed files with 6 additions and 6 deletions

View file

@ -22,7 +22,7 @@ job "cryptpad" {
constraint {
attribute = "${attr.unique.hostname}"
operator = "="
value = "courgette"
value = "concombre"
}
config {
@ -30,7 +30,7 @@ job "cryptpad" {
ports = [ "http" ]
volumes = [
"/mnt/storage/cryptpad:/mnt",
"/mnt/ssd/cryptpad:/mnt",
"secrets/config.js:/etc/cryptpad/config.js",
]
}

View file

@ -14,7 +14,7 @@ job "telemetry-storage" {
constraint {
attribute = "${attr.unique.hostname}"
operator = "set_contains_any"
value = "concombre,df-ymk"
value = "celeri,df-ymk"
}
task "prometheus" {

View file

@ -10,7 +10,7 @@
networking.hostName = "concombre";
deuxfleurs.network_interface = "eno1";
deuxfleurs.network_interface = "enp0s31f6";
deuxfleurs.lan_ip = "192.168.1.31";
deuxfleurs.ipv6 = "2001:910:1204:1::31";

View file

@ -10,7 +10,7 @@
networking.hostName = "courgette";
deuxfleurs.network_interface = "eno1";
deuxfleurs.network_interface = "enp0s31f6";
deuxfleurs.lan_ip = "192.168.1.32";
deuxfleurs.ipv6 = "2001:910:1204:1::32";

View file

@ -1,6 +1,6 @@
#!/usr/bin/env ./sshtool
if [ "$CLUSTER" = "staging" ]; then
if [ "$CLUSTER" = "staging" -o "$NIXHOST" = "concombre" -o "$NIXHOST" = "courgette" -o "$NIXHOST" = "celeri" ]; then
cmd nix-channel --add https://nixos.org/channels/nixos-22.11 nixos
else
cmd nix-channel --add https://nixos.org/channels/nixos-22.05 nixos